@@ -, +, @@ perl misc/cronjobs/update_patrons_category.pl -f ST -t S --finesunder=5.00 --where "me.borrowernumber=45" -v -c perl misc/cronjobs/update_patrons_category.pl -f S -t ST --finesunder=5.00 --where "me.borrowernumber=45" -v -c --- Koha/Patrons.pm | 1 + 1 file changed, 1 insertion(+) --- a/Koha/Patrons.pm +++ a/Koha/Patrons.pm @@ -399,6 +399,7 @@ sub update_category_to { my ( $self, $params ) = @_; my $counter = 0; while( my $patron = $self->next ) { + $patron->discard_changes; $counter++; $patron->categorycode($params->{category})->store(); } --