fix deleting entries in the DataForm
This commit is contained in:
parent
481fded7e7
commit
91b1c00215
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue