X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FTimeRecording.pm;h=930f346d6fcb9960fdfb7a7705153f5dd7d05efa;hb=feb6f563968f53e59511578429b1dd61fda52008;hp=10870efd0e54b9be09b9877fe7a04a17945e2ce9;hpb=9abe4cbe21f4109e5323c49fa7baa1aa0e7cfb1d;p=kivitendo-erp.git diff --git a/SL/Controller/TimeRecording.pm b/SL/Controller/TimeRecording.pm index 10870efd0..930f346d6 100644 --- a/SL/Controller/TimeRecording.pm +++ b/SL/Controller/TimeRecording.pm @@ -90,8 +90,10 @@ sub action_mark_as_booked { my ($self) = @_; if (scalar @{ $::form->{ids} }) { - my $trs = SL::DB::Manager::TimeRecording->get_all(query => [id => $::form->{ids}]); - $_->update_attributes(booked => 1) for @$trs; + SL::DB::Manager::TimeRecording->update_all( + set => { booked => 1 }, + where => [ id => $::form->{ids} ] + ); } $self->redirect_to(safe_callback());