projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Auftrags-Controller: Speichern und schließen, …
[kivitendo-erp.git]
/
SL
/
Controller
/
TimeRecording.pm
diff --git
a/SL/Controller/TimeRecording.pm
b/SL/Controller/TimeRecording.pm
index
10870ef
..
930f346
100644
(file)
--- 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 ($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());
}
$self->redirect_to(safe_callback());