Closed (fixed)
Project:
Conditional Fields
Version:
7.x-3.0-alpha1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2014 at 15:37 UTC
Updated:
22 Jun 2015 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rlmumfordhere's a patch.
Comment #2
rlmumfordComment #4
rlmumfordComment #5
rlmumfordComment #6
rlmumfordThere's another contrib module that now requires this patch #2124191: Introduce Conditional Fields support
Comment #7
andrewbelcher commentedI can confirm that the patch in #4 solves this problem.
Comment #8
rlmumfordCan this be committed please? It's been 9 months!
Comment #10
peterpoe commentedComment #12
mbayntonThis patch looks dangerous. Here's a snippet with the patch applied:
Note that it is guarded by an
isset($dependee['#parents']), which is the thing that used to be read within the if block. Now, we read$dependee['#array_parents'], which could be undefined if the function is called with no $id and a field name string in $dependee.I suspect a good solution would be to just assume #array_parents should equal #parents for the string-as-$dependee case. I'd be happy to do a patch on this issue or a separate one if requested.