fix deleting entries in the DataForm

This commit is contained in:
Colin Kuskie 2008-08-28 14:29:39 +00:00
parent 481fded7e7
commit 91b1c00215
2 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,7 @@
- fixed: incoming data not properly decoded from utf8
- fixed: Can't call method "getSku" on unblessed reference
- fixed: PurgeOldInboxMessages just didn't work
- fixed: Unable to delete data form entries
7.5.22
- fixed: Layout template now gets prepared correctly

View file

@ -448,8 +448,8 @@ sub deleteAttachedFiles {
my $fieldConfig = $self->getFieldConfig;
if ($entryId) {
my $entry = $self->session->db->buildArrayRef("select entryData from DataForm_entry where assetId=? and DataForm_entryId=?", [$self->getId, $entryId]);
$entryData = JSON::from_json($entry->{entryData});
my ($entry) = $self->session->db->buildArray("select entryData from DataForm_entry where assetId=? and DataForm_entryId=?", [$self->getId, $entryId]);
$entryData = JSON::from_json($entry);
}
if ($entryData) {
for my $field ( @$fields ) {