]> git.koha-community.org Git - koha.git/commit
Bug 27069: (follow-up) Only display rules if one is set
authorNick Clemens <nick@bywatersolutions.com>
Mon, 12 Apr 2021 13:22:50 +0000 (13:22 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Apr 2021 15:29:47 +0000 (17:29 +0200)
commit5a3a9a17c643b056594407af0ffba2998113a1a2
treed3d6a60505d85afa521261334d1ef9398a691419
parent65542edbe021d58ca6ef1332a8e3ca760b198391
Bug 27069: (follow-up) Only display rules if one is set

Testing that the rule is != 'hold_allowed' is true for each itemtype where
the rule is not set. This means it appears that no holds are allowed
for any item type if no rules are set

To test:
1 - With a fresh testing DB or no holdallowed rule set, you can use SQl below to clear:
    DELETE from circuation_rules WHERE rule_name='holdallowed';
2 - Load smart-rules.pl (Administration->Circulation and fines rules)
3 - Scroll to "Default holds policy by item type"
4 - Note all item types appear as 'No holds allowed'
5 - Apply patch
6 - Reload
7 - All clear
8 - Confirm adding rules displays correctly

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt