https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33916

Katrin Fischer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #3 from Katrin Fischer <[email protected]> ---
Couldn't this be simplified?

+                    [% IF ( label_element == 'layout' ) %]
+                        <h2>[% PROCESS translate_label_element
element=label_element_title %]</h2>
+                    [% ELSIF ( label_element == 'template' ) %]
+                        <h2>[% PROCESS translate_label_element
element=label_element_title %]</h2>
+                    [% ELSIF ( label_element == 'profile' ) %]
+                        <h2>[% PROCESS translate_label_element
element=label_element_title %]</h2>
+                    [% ELSIF ( label_element == 'batch' ) %]
+                        <h2>[% PROCESS translate_label_element
element=label_element_title %]</h2>
+                    [% END %]


To just be?
<h2>[% PROCESS translate_label_element element=label_element_title %]</h2>

If the outcome is always the same, why do the if/else?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to