Skip to content

Commit

Permalink
Fix field deletion from container table
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault authored and cedric-anne committed Jun 1, 2022
1 parent 8bf4d08 commit aaa361d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function pre_deleteItem() {
$container_obj->getFromDB($this->fields['plugin_fields_containers_id']);
foreach (json_decode($container_obj->fields['itemtypes']) as $itemtype) {
$classname = PluginFieldsContainer::getClassname($itemtype, $container_obj->fields['name']);
$classname::removeField($this->fields['type'], $this->fields['name']);
$classname::removeField($this->fields['name'], $this->fields['type']);
}
}

Expand Down

0 comments on commit aaa361d

Please sign in to comment.