@@ -, +, @@ --> without patch - it exploads with log: --> with patch - the modification is properly made --- tools/modborrowers.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/tools/modborrowers.pl +++ a/tools/modborrowers.pl @@ -339,8 +339,9 @@ if ( $op eq 'do' ) { for my $borrowernumber ( @borrowernumbers ) { my $patron = Koha::Patrons->find( $borrowernumber ); if ( $patron ) { + my $category_description = $patron->category->description; $patron = $patron->unblessed; - $patron->{category_description} = $patron->category->description; + $patron->{category_description} = $category_description; $patron->{patron_attributes} = C4::Members::Attributes::GetBorrowerAttributes( $patron->{borrowernumber} ); $max_nb_attr = scalar( @{ $patron->{patron_attributes} } ) if scalar( @{ $patron->{patron_attributes} } ) > $max_nb_attr; --