]> git.koha-community.org Git - koha.git/commit
Bug 17530: (QA follow-up) Replace our variable by cached value
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 15 Mar 2018 11:04:30 +0000 (12:04 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 7 Sep 2018 13:16:07 +0000 (13:16 +0000)
commit70c6266081a566149c7b3b49c95958a31417d435
tree6573418e9362b7ae88dcab3faa84107e4b815198
parentb6813142ddedebf96bb6dfa50d5544d42c30e5e1
Bug 17530: (QA follow-up) Replace our variable by cached value

Instead of saving the state locally in a variable during Plack lifetime,
we move the saved hash to the cache. We clear the key when we enter
smart-rules.pl. This makes a change in circ rules immediately effective.

Test plan:
Run the modified tests.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/IssuingRules.pm
admin/smart-rules.pl
t/db_dependent/ArticleRequests.t
t/db_dependent/Koha/IssuingRules/guess_article_requestable_itemtypes.t