Bug 9118: Do not show option to create exception on range for unique holiday
authorEmmi Takkinen <emmi.takkinen@outlook.com>
Mon, 5 Oct 2020 08:19:44 +0000 (11:19 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 14 Oct 2020 09:47:57 +0000 (11:47 +0200)
commit683d6ced64a92cc391ac81b4a046bcdf2110bb83
tree0269e71986dc0b8128a8e59a1810be6fa176a317
parentace5b632a6ed965931e1332cacb1419c16286d65
Bug 9118: Do not show option to create exception on range for unique holiday

When an unique holiday is edited one can choose
option 'Generate exceptions on a range of dates.'
Exceptions are meant to be used with repeating
holidays and it makes no sense to have option to
be able to create one for an unique holiday.

This patch hides exception on range option when
editing an unique holiday. Also fixes a minor
spelling error.

To test:
1. Create unique holiday and edit it.
2. Note that option to create exception on range is shown.
3. Apply patch.
=> Option is now hidden.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt