]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/File.pm
ActionBar: Verwendung im E-Mail-Journal
[kivitendo-erp.git] / SL / Controller / File.pm
index 875478fb2f3f9a535910a322afd5dbcec5442589..8d2e9f2bdeb7eb272906d2377321d6003763390f 100644 (file)
@@ -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;