Bug 32507: (follow-up) Change parameter name to avoid collisions
authorOwen Leonard <oleonard@myacpl.org>
Thu, 5 Jan 2023 18:44:47 +0000 (18:44 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 15 Feb 2023 12:24:38 +0000 (09:24 -0300)
The variable name "active" is very likely to already be set for other
reasons, so changing the parameter name to "bc_active" to avoid
problems.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt

index faed2b2..758c7ba 100644 (file)
             [ WRAPPER breadcrumb_item ]
                 <a href="/cgi-bin/koha/module/page.pl"> Module page </a>
             [ END ]
-            [ WRAPPER breadcrumb_item active = 1 ]
+            [ WRAPPER breadcrumb_item bc_active = 1 ]
                 Add form
             [ END ]
 
             [ WRAPPER breadcrumb_item ]
                 <a href="/cgi-bin/koha/module/page.pl"> Module page </a>
             [ END ]
-            [ WRAPPER breadcrumb_item active = 1 ]
+            [ WRAPPER breadcrumb_item bc_active = 1 ]
                 Confirm deletion
             [ END ]
 
         [ ELSE ]
-            [ WRAPPER breadcrumb_item active = 1 ]
+            [ WRAPPER breadcrumb_item bc_active = 1 ]
                 Module page
             [ END ]
         [ END #/IF op = add_form ]
 
 [%# Used to build individual breadcrumb items in the breadcrumb nav %]
 [% BLOCK breadcrumb_item %]
-    [% IF ( active ) %]
+    [% IF ( bc_active ) %]
         <li>
             <a href="#" aria-current="page">
                 [% content | $raw %]
index b71bcd2..98235c8 100644 (file)
@@ -33,7 +33,7 @@
             [% WRAPPER breadcrumb_item %]
                 <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
             [% END %]
-            [% WRAPPER breadcrumb_item active = 1 %]
+            [% WRAPPER breadcrumb_item bc_active = 1 %]
                 [% IF city.cityid %]
                     <span>Modify city</span>
                 [% ELSE %]
             [% WRAPPER breadcrumb_item %]
                 <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
             [% END %]
-            [% WRAPPER breadcrumb_item active = 1 %]
+            [% WRAPPER breadcrumb_item bc_active = 1 %]
                 Confirm deletion of city
             [% END %]
 
         [% ELSE %]
-            [% WRAPPER breadcrumb_item active = 1 %]
+            [% WRAPPER breadcrumb_item bc_active = 1 %]
                 Cities
             [% END %]
         [% END #/IF op = add_form %]