Revision 262811c8
Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt
SL/Helper/File.pm | ||
---|---|---|
23 | 23 |
my $id = $form->{id}; |
24 | 24 |
$id = $form->{attachment_id} if $form->{attachment_id} && !$form->{id}; |
25 | 25 |
return if !$id || !$type; |
26 |
my $prefix = $form->get_number_prefix_for_type(); |
|
26 |
|
|
27 | 27 |
SL::File->save( |
28 | 28 |
object_id => $id, |
29 | 29 |
object_type => $type, |
... | ... | |
32 | 32 |
file_type => 'document', |
33 | 33 |
file_name => $form->{attachment_filename}, |
34 | 34 |
file_path => $form->{tmpfile}, |
35 |
file_number => $form->{"${prefix}number"}, |
|
36 | 35 |
); |
37 | 36 |
} |
38 | 37 |
|
Auch abrufbar als: Unified diff
File-Helper: unbenutzten Parameter file_number entfernt