]> git.koha-community.org Git - koha.git/commit
Bug 32188: Only show template controls above item form if templates have been defined
authorKyle Hall <kyle@bywatersolutions.com>
Mon, 14 Nov 2022 16:07:51 +0000 (11:07 -0500)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 14 Nov 2022 18:07:05 +0000 (15:07 -0300)
commit0441b5ce46d66798180610ba115b4d4feef569fb
tree6349b8e4474f2573ecebc6aea598f6b3171b8bee
parent8bbfe0cc9495610ca9b00afbb156d19b9dfc551e
Bug 32188: Only show template controls above item form if templates have been defined

The new item templates above the item edit form should only show, when at least one template has been defined.

Test Plan:
1) Browse to the item editor
2) Delete all templates
3) Note the template toolbar is displayed
4) Apply this patch
5) Reload the page, note the toolbar is not displayed
6) Create a new template, note the toolbar is now displayed
7) Delete that template, note the toolbar is no longer displayed

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/cataloguing/additem.tt