[Koha-bugs] [Bug 25440] Remove undef and CGI warnings and fix template variables list in circulation rules

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 17 22:31:15 CEST 2020


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

Andrew Nugged <nugged at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #104640|0                           |1
        is obsolete|                            |

--- Comment #19 from Andrew Nugged <nugged at gmail.com> ---
Created attachment 105985
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105985&action=edit
Bug 25440: Fixed list of 'show_rule' forming variables in the template

In smart-rules.tt we have `SET show_rule = ...` section which filled
with 'all used in the loop' variables. Because if historical reasons it
seems that there are some missing, few old, and even doubled ones.
This list is fixed now by:

  - variable names 'article_requests' and 'renewalsallowed' repeated
    so duplicates are removed;

  - 'hardduedatebefore' and 'hardduedateexact' not present in the whole
    site code anywhere anymore;
    IMPORTANT NOTE: these 'hardduedatebefore/hardduedateexact' also
                    exists as remnants in .po-translation files, a lot.

  - 'note', 'hardduedatecompare', 'renewalperiod', 'rentaldiscount'
    template variables were missing from this 'show_rule =' checking
    code so they are added.

Order of fields updated to match with above "SET field = ..." pack.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list