Bug #3665
closedTab conditions working opposite of what is configured in profile edit
Description
2 way tab conditions not working properly. For example a tab is configured to hide if a checkbox is empty. This works fine in profile view, but in profile edit even though the checkbox is checked (not empty) it is still hidden, but suddenly shows if the checkbox us unchecked (empty).
Updated by krileon about 12 years ago
Appears to be a bug in the JS value matching as profile edit uses strictly the JS except for on POST to handle display.
Updated by krileon about 12 years ago
An operator of "6" (empty) was selected, but JS is outputting the operator is "1" (not equal to). For some strange reason it's not being passed the correct operator.
Updated by krileon about 12 years ago
Found the issue, direction was being declared as operator instead of direction when defining the JS parameters.
Updated by krileon about 12 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Now working as intended. Quickfix as follows.
IN: components/com_comprofiler/plugin/user/plug_cbconditional/cbconditional.class.php
ON: Line 655
FROM:"operator: " . (int) $direction . ","
TO:"direction: " . (int) $direction . ","