https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38266 Bug ID: 38266 Summary: Bug 21083 follow-up Incorrect attribute disabled in borrower batch modification Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Tools Assignee: koha-bugs@lists.koha-community.org Reporter: nick@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Bug 21083 moved from a loop of checking disabled attributes to a grep. When looping we did ++$i for each iteration For the grep we need to check the current i before incrementing, but we are doing the increment first here: $attributes->{$code}->{disabled} = grep { $_ eq sprintf("attr%s_value", ++$i) } @disabled; Just need to move the pluses to the right -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.