Skip to content

Commit aaa361d

Browse files
AdrienClairembaultcedric-anne
authored andcommitted
Fix field deletion from container table
1 parent 8bf4d08 commit aaa361d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/field.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function pre_deleteItem() {
221221
$container_obj->getFromDB($this->fields['plugin_fields_containers_id']);
222222
foreach (json_decode($container_obj->fields['itemtypes']) as $itemtype) {
223223
$classname = PluginFieldsContainer::getClassname($itemtype, $container_obj->fields['name']);
224-
$classname::removeField($this->fields['type'], $this->fields['name']);
224+
$classname::removeField($this->fields['name'], $this->fields['type']);
225225
}
226226
}
227227

0 commit comments

Comments
 (0)