X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/9abe4cbe21f4109e5323c49fa7baa1aa0e7cfb1d..d32410ac096b:/SL/Controller/TimeRecording.pm 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());