Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Dec 13, 2024
1 parent 2211bc7 commit b584c94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ public function pre_deleteItem()
foreach ($all_container as $container_fields) {
foreach (json_decode($container_fields['itemtypes']) as $itemtype) {
$dropdown_classname = PluginFieldsDropdown::getClassname($this->fields['name']);
$classname = PluginFieldsContainer::getClassname($itemtype, $container_fields['name']);
$dropdown_fk = getForeignKeyFieldForItemType($dropdown_classname);
if ($DB->fieldExists(getTableForItemType($classname), $dropdown_fk)) {
$use_by_another = true;
Expand Down

0 comments on commit b584c94

Please sign in to comment.