fixed: failure when submitting a dataform that sends mail with an empty file field
This commit is contained in:
parent
f7b02c0407
commit
e971902f6e
2 changed files with 4 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
unmodified has been moved to the configuration file under the
|
||||
"exportBianryExtensions" field.
|
||||
- fixed: some default assets have ids shorter than 22 characters
|
||||
- fixed: failure when submitting a dataform that sends mail with an empty file field
|
||||
|
||||
7.6.0
|
||||
- added: users may now customize the post received page for the CS
|
||||
|
|
|
|||
|
|
@ -485,7 +485,9 @@ sub getAttachedFiles {
|
|||
my $form = $self->_createForm($field, $entryData->{$field->{name}});
|
||||
if ($form->can('getStorageLocation')) {
|
||||
my $storage = $form->getStorageLocation;
|
||||
push @paths, $storage->getPath($storage->getFiles->[0]);
|
||||
if ($storage) {
|
||||
push @paths, $storage->getPath($storage->getFiles->[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return \@paths;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue