bug 2293: better validation in overdue rules editor
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 1 Jul 2008 16:53:23 +0000 (11:53 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 2 Jul 2008 17:25:50 +0000 (12:25 -0500)
commitb8e404700aa8c31dc49f01416a64c2a2dfd54eb0
tree4f0e260992e459d106aba355a233a29160308e9c
parentbf12bc05e1795c1e87904dbf6a9cca2f1751fd71
bug 2293: better validation in overdue rules editor

If a rule should not be saved because a delay is
given but no letter or debar action is specified
for that delay, an error message is now reported.

Also:

* use "dialog alert" CSS class for confirmation
  that form was saved
* if form input is saved, retrieve the settings from the
  database again when displaying the form - this will
  help turn up any bugs where the script is not
  saving the overdue rules correctly.
* fix display of patron category in error messages

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tmpl
tools/overduerules.pl