projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b48261
)
Zeiterfassung: Eingabe: Dauer auf 0 setzen können
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 6 May 2021 15:36:05 +0000
(17:36 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 6 May 2021 15:36:05 +0000
(17:36 +0200)
SL/Controller/TimeRecording.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/TimeRecording.pm
b/SL/Controller/TimeRecording.pm
index
84f1814
..
d326522
100644
(file)
--- a/
SL/Controller/TimeRecording.pm
+++ b/
SL/Controller/TimeRecording.pm
@@
-165,7
+165,7
@@
sub init_time_recording {
my %attributes = %{ $::form->{time_recording} || {} };
if ($self->use_duration) {
- if (
$::form->{duration_h} ||
$::form->{duration_m}) {
+ if (
exists $::form->{duration_h} || exists
$::form->{duration_m}) {
$attributes{duration} = _round_number(_parse_number($::form->{duration_h}) * 60 + _parse_number($::form->{duration_m}), 0);
}