From 34e9f0dadb3922b14151c5279f30c0ae1eae470f Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 15 Feb 2023 14:58:33 +1300 Subject: [PATCH] Bug 32021: Only show 'appear in position' for News The 'Appear in position' option isn't relevant for HTML customisations or Pages. The option is only used by the News tool, so we should hide it when not adding or modifying a News item. To test: 1) Add a new HTML customisation or Page 2) Confirm the 'Appear in position' option does not show 3) Add a new News item 4) Confirm the 'Appear in position' option DOES show Sponsored-by: Catalyst IT --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index 30b0103a808..697dbbeb333 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -256,6 +256,7 @@ [% END %] + [% IF category == 'news' %]
  • [% IF ( additional_content.number ) %] @@ -264,6 +265,7 @@ [% END %]
  • + [% END %] -- 2.11.0