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:
7aa7cf5
)
File-Controller: Warnungen wegen undefinierter Werte vermeiden
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 13 Feb 2017 10:24:44 +0000
(11:24 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 13 Feb 2017 10:24:44 +0000
(11:24 +0100)
Warnungen traten bei t/file/filesystem.t auf.
SL/Controller/File.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/File.pm
b/SL/Controller/File.pm
index
875478f
..
8d2e9f2
100644
(file)
--- a/
SL/Controller/File.pm
+++ b/
SL/Controller/File.pm
@@
-309,8
+309,8
@@
sub action_download {
sub check_object_params {
my ($self) = @_;
- my $id =
$::form->{object_id} +0
;
- my $draftid =
$::form->{draft_id} +0
;
+ my $id =
($::form->{object_id} // 0) * 1
;
+ my $draftid =
($::form->{draft_id} // 0) * 1
;
my $gldoc = 0;
my $type = undef;