Fix two issues with sub deleteAttachedFiles that were preventing
it from being purged from the trash.
This commit is contained in:
parent
6db3fc1005
commit
d95ba6c8da
2 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
7.5.19
|
||||
- fixed: unable to purge trash
|
||||
|
||||
7.5.18
|
||||
- fixed: Collateral Image Manager broken in Firefox 3
|
||||
|
|
|
|||
|
|
@ -462,10 +462,9 @@ sub deleteAttachedFiles {
|
|||
}
|
||||
else {
|
||||
my $entries = $self->session->db->buildArrayRef("select entryData from DataForm_entry where assetId=?", [$self->getId]);
|
||||
foreach my $entry (@$entries) {
|
||||
my $entryData = decode_json($entry->{entryData});
|
||||
$self->deleteEntryFiles($entryData);
|
||||
for my $field ( @$fields ) {
|
||||
foreach my $entry (@{ $entries}) {
|
||||
my $entryData = decode_json($entry);
|
||||
for my $field (@{ $fields }) {
|
||||
my $form = $self->_createForm($fieldConfig->{$field}, $entryData->{$field});
|
||||
if ($form->can('getStorageLocation')) {
|
||||
my $storage = $form->getStorageLocation;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue