View | Details | Raw Unified | Return to bug 25567
Collapse All | Expand All

(-)a/tools/modborrowers.pl (-3 / +2 lines)
Lines 132-138 if ( $op eq 'show' ) { Link Here
132
132
133
        my $category_code = $attr_type->category_code;
133
        my $category_code = $attr_type->category_code;
134
        my ( $category_lib ) = map {
134
        my ( $category_lib ) = map {
135
            ( defined $category_code and $attr_type->categorycode eq $category_code ) ? $attr_type->description : ()
135
            ( defined $category_code and $attr_type->category_code eq $category_code ) ? $attr_type->description : ()
136
        } @patron_categories;
136
        } @patron_categories;
137
        push @patron_attributes_codes,
137
        push @patron_attributes_codes,
138
            {
138
            {
Lines 381-387 if ( $op eq 'do' ) { Link Here
381
            $attribute->{attribute} = $attr_values[$i];
381
            $attribute->{attribute} = $attr_values[$i];
382
            my $attr_type = Koha::Patron::Attribute::Types->find($_);
382
            my $attr_type = Koha::Patron::Attribute::Types->find($_);
383
            # If this borrower is not in the category of this attribute, we don't want to modify this attribute
383
            # If this borrower is not in the category of this attribute, we don't want to modify this attribute
384
            ++$i and next if $attr_type->category_code and $attr_type->category_code ne $patron->category_code;
384
            ++$i and next if $attr_type->category_code and $attr_type->category_code ne $patron->categorycode;
385
            my $valuename = "attr" . $i . "_value";
385
            my $valuename = "attr" . $i . "_value";
386
            if ( grep { $_ eq $valuename } @disabled ) {
386
            if ( grep { $_ eq $valuename } @disabled ) {
387
                # The attribute is disabled, we remove it for this borrower !
387
                # The attribute is disabled, we remove it for this borrower !
388
- 

Return to bug 25567