fixed: failure when submitting a dataform that sends mail with an empty file field

This commit is contained in:
Graham Knop 2008-10-02 15:12:31 +00:00
parent f7b02c0407
commit e971902f6e
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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;