]> git.koha-community.org Git - koha.git/commit
Bug 14070: Prevent to save a letter if an error occurred
authorJonathan Druart <jonathan.druart@koha-community.org>
Fri, 22 May 2015 09:58:18 +0000 (11:58 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 17 Jun 2015 12:55:40 +0000 (09:55 -0300)
commitd56a275c0d101e7969192ef326ceaa64cacf83d8
tree1bcf3af8e80ec1143eee0eb659ea46ace5162da1
parent38048bc420ffa6f2a5a73287fdff5e2d8cbe63ef
Bug 14070: Prevent to save a letter if an error occurred

On saving a letter, if the title or the content of a template is not
defined, a JS alert is raised. But the form is submitted anyway.
This patch prevent the form to be submitted.

Test plan:
- Create or edit a letter
- Fill the title for a template, not the content
- Save
- Confirm you get the alert and that the form is not submitted

http://bugs.koha-community.org/show_bug.cgi?id=14070

Signed-off-by: Indranil Das Gupta <indradg@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt