We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1cb5e2 commit 9f79c28Copy full SHA for 9f79c28
conditional_fields.module
@@ -1532,11 +1532,12 @@ function conditional_fields_dependency_delete($dependency_ids) {
1532
* Delete any dependency associated with the deleted instance.
1533
*/
1534
function conditional_fields_field_delete_instance($instance) {
1535
+ $id = $instance['entity_type'] . '.' . $instance['bundle'] . '.' . $instance['field_name'];
1536
db_delete('conditional_fields')
1537
->condition(
1538
db_or()
- ->condition('dependee', $instance['id'])
1539
- ->condition('dependent', $instance['id']))
+ ->condition('dependee', $id)
1540
+ ->condition('dependent', $id))
1541
->execute();
1542
}
1543
0 commit comments