Bug 21083: Remove all attributes
not only the first one Signed-off-by: Philip Orr <philip.orr@lmscloud.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
40a37ecccd
commit
88be91a786
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ if ( $op eq 'do' ) {
|
||||||
if ( $attributes->{$code}->{disabled} ) {
|
if ( $attributes->{$code}->{disabled} ) {
|
||||||
# The attribute is disabled, we remove it for this borrower !
|
# The attribute is disabled, we remove it for this borrower !
|
||||||
eval {
|
eval {
|
||||||
$patron->get_extended_attribute($code)->delete;
|
$patron->extended_attributes->search({'me.code' => $code})->filter_by_branch_limitations->delete;
|
||||||
};
|
};
|
||||||
push @errors, { error => $@ } if $@;
|
push @errors, { error => $@ } if $@;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue