[Koha-bugs] [Bug 25554] Refactor rule kinds assignments in CirculationRules.pm

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 20 17:02:53 CEST 2020


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

--- Comment #1 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 105154
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105154&action=edit
Bug 25554: Refactor rule kinds assignments in CirculationRules.pm

CirculationRules.pm have repeated code with the same values assigned many times
to rule kinds and also same hardcoded values appear in foreach loop.
Refactored by creating arrays once and then assigning and looping their values.

Mentored-by: Andrew Nugged <nugged at gmail.com>

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


More information about the Koha-bugs mailing list