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

--- Comment #1 from Caroline Cyr La Rose <[email protected]> ---
I did the change, but the new tidy thing emptied the smart-rules.tt file when I
went to commit...

This is my diff before the commit (and before I corrected the tabs to spaces)


caroline@cacouana[16:42:09](master-dev)/inlibro/git/koha-master-dev-caroline$
git diff
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
index 7c36fb4d1d..6560798651 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
@@ -114,7 +114,9 @@
                         <th class="noExport">Actions</th>
                         <th>Note</th>
                         <th>Current checkouts allowed</th>
-                        <th>Current on-site checkouts allowed</th>
+                        [% IF Koha.Preference('OnSiteCheckouts') %]
+                            <th>Current on-site checkouts allowed</th>
+                        [% END %]
                         <th>Loan period</th>
                         <th>Days mode</th>
                         <th>Unit</th>
@@ -261,13 +263,15 @@
                                             <span>Unlimited</span>
                                         [% END %]
                                     </td>
-                                    <td>
-                                        [% IF maxonsiteissueqty.defined &&
maxonsiteissueqty != '' %]
-                                            [% maxonsiteissueqty | html %]
-                                        [% ELSE %]
-                                            <span>Unlimited</span>
-                                        [% END %]
-                                    </td>
+                                    [% IF Koha.Preference('OnSiteCheckouts')
%]
+                                        <td>
+                                            [% IF maxonsiteissueqty.defined &&
maxonsiteissueqty != '' %]
+                                                [% maxonsiteissueqty | html %]
+                                            [% ELSE %]
+                                                <span>Unlimited</span>
+                                            [% END %]
+                                        </td>
+                                    [% END %]
                                     <td>[% issuelength | html %]</td>
                                     <td data-code="[% daysmode | html %]">
                                         [% SWITCH daysmode %]
@@ -595,7 +599,9 @@
                         <th>&nbsp;</th>
                         <th>Note</th>
                         <th>Current checkouts allowed</th>
-                        <th>Current on-site checkouts allowed</th>
+                       [% IF Koha.Preference('OnSiteCheckouts') %]
+                            <th>Current on-site checkouts allowed</th>
+                        [% END %]
                         <th>Loan period</th>
                         <th>Days mode</th>
                         <th>Unit</th>
@@ -657,7 +663,9 @@
                 <tr>
                     <th>&nbsp;</th>
                     <th>Total current checkouts allowed</th>
-                    <th>Total current on-site checkouts allowed</th>
+                    [% IF Koha.Preference('OnSiteCheckouts') %]
+                        <th>Total current on-site checkouts allowed</th>
+                    [% END %]
                     <th>Maximum total holds allowed (count)</th>
                     <th>Hold policy</th>
                     <th>Hold pickup library match</th>
@@ -812,7 +820,9 @@
                     <tr>
                         <th>Patron category</th>
                         <th>Total current checkouts allowed</th>
-                        <th>Total current on-site checkouts allowed</th>
+                        [% IF Koha.Preference('OnSiteCheckouts') %]
+                            <th>Total current on-site checkouts allowed</th>
+                        [% END %]
                         <th>Total holds allowed</th>
                         <th>&nbsp;</th>
                     </tr>

I honestly don't have the emotional fortitude today to do it over...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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