File-Helper: unbenutzten Parameter file_number entfernt
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Tue, 16 Mar 2021 15:59:35 +0000 (16:59 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 17 Mar 2021 11:23:55 +0000 (12:23 +0100)
SL/Helper/File.pm

index b90948f..9690118 100644 (file)
@@ -23,7 +23,7 @@ sub store_pdf {
   my $id = $form->{id};
   $id = $form->{attachment_id} if $form->{attachment_id} && !$form->{id};
   return if !$id || !$type;
-  my $prefix = $form->get_number_prefix_for_type();
+
   SL::File->save(
     object_id   => $id,
     object_type => $type,
@@ -32,7 +32,6 @@ sub store_pdf {
     file_type   => 'document',
     file_name   => $form->{attachment_filename},
     file_path   => $form->{tmpfile},
-    file_number => $form->{"${prefix}number"},
   );
 }