Bug 18752 - Automatic item modifications by age should allow 'blank' values
authorOwen Leonard <oleonard@myacpl.org>
Thu, 8 Jun 2017 15:19:22 +0000 (15:19 +0000)
committerKatrin Fischer <katrin.fischer.83@web.de>
Thu, 15 Jun 2017 20:21:35 +0000 (22:21 +0200)
commitd50b5a6c3981ad6a3eee74bd3c8a3da171f9208e
tree59bd83f2e9ba807fa2d8b01583cf892196b1b452
parent90b79b412254b073ad33601df7c0c6f2bf324200
Bug 18752 - Automatic item modifications by age should allow 'blank' values

This patch modifies the automatic item modification by age template to
correct errors in form validation:

- Age in days should not be required
- A value should not be required in substitutions.

To test, apply the patch and clear your browser cache if necessary.

- Go to Tools -> Automatic item modification by age.
- Confirm that when editing or creating a rule the only required field
  is the substitutions field name.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 1bc45a470e55bcbb5e4031c001749a1ec9b35160)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 8c782759ef2ff01a5e125c05f998a3a678346455)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt
koha-tmpl/intranet-tmpl/prog/js/automatic_item_modification_by_age.js