BUG: Location relative hierarchy equality check
-
I am using the Location Relative Hierarchy rule set for checking a page is the childOf a parent page and it was not working, so I took a look at the source code and noticed it was checking strict equality (===) between $parent_id (int) and $relative_id (array) hence why it is breaking, so by changing:
$relative_id = $rule['value'];
to
$relative_id = $rule['value'][0];
made the code pass true for me as I am assigning the int from the array not the array to variable $relative_id.
Can this be fixed please?
Thanks,
Jamie
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘BUG: Location relative hierarchy equality check’ is closed to new replies.