https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32262 --- Comment #3 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Created attachment 144143 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144143&action=edit Bug 32262: Handle non-existing circ rules Some rules are not displayed on the UI, even if they exist in the DB, that's confusing. That's because we are implicitely returning 'undef' from CirculationRules.Search, and perl returns an empty string for undef in a string context. Which means "rules.defined" is always true. This patch is ugly and really hope somebody else will come with a better solution. Test plan: I don't know, search for regressions on the circ rule UI?... :D -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.