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

--- Comment #461 from Jonathan Druart <jonathan.druart+k...@gmail.com> ---
1530     my $branchcode =
1531         $ref eq 'Koha::Item' ? $item->homebranch
1532       : $ref eq 'HASH'       ? $item->{homebranch}
1533       : $ref eq q{}          ? $item
1534       :                        undef;

This reads bad, and introduce an incorrect pattern, can you have another look
at it please?

Why not simply having can_edit_items_from that takes the branchcode?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to