See bug 27834. Thinking here about an alternative approach (without messing up the original report).
Created attachment 189836 [details] [review] Bug 41280: Add check on branchcode of patron_maxissueqty rule Test plan: Still coming
Created attachment 189837 [details] [review] Bug 41280: Add patron library scope to PatronLibrary for branch level rules At the same time bringing both CircControl blocks more in sync by using $branch and a new $prefetch variable.
Created attachment 189838 [details] [review] Bug 41280: Add check on branchcode of patron_maxissueqty rule Test plan: Still coming
Created attachment 189839 [details] [review] Bug 41280: Add patron library scope to PatronLibrary for branch level rules At the same time bringing both CircControl blocks more in sync by using $branch and a new $prefetch variable.
Fixed: Can't call method "branchcode" on unblessed reference at /usr/share/koha/C4/Circulation.pm line 594