Skip to content

Commit ed3779e

Browse files
committed
Fix entity_type & bundle variables
1 parent 3902e28 commit ed3779e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conditional_fields.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function conditional_fields_element_after_build($element, &$form_state) {
263263
}
264264

265265
// Attach dependent.
266-
$field_instance_id = $form['#entity_type'] . '.' . $form['#bundle'] . '.' . $field['#field_name'];
266+
$field_instance_id = $entity_type . '.' . $bundle . '.' . $field['#field_name'];
267267
if (isset($dependencies['dependents'][$field_instance_id])) {
268268
foreach ($dependencies['dependents'][$field_instance_id] as $id => $dependency) {
269269
$dependency_parts = explode('.', $dependency['dependee']);

0 commit comments

Comments
 (0)