Version 5.0.14
This commit is contained in:
1 parent
5efe744c5f
commit
dbd774b30c
364 files changed
+7048
-1377
No files matched your search
@@ -680,9 +680,10 @@ class Form
|
||||
{
|
||||
foreach ( $elements as $_name => $element )
|
||||
{
|
||||
/* @var FormAbstract $element */
|
||||
if ( isset( $element->options['togglesOn'] ) )
|
||||
{
|
||||
if ( !$element->value )
|
||||
if ( !$element->value or in_array( $element->htmlId, $htmlIdsToIgnoreBecauseTheyAreHiddenByToggles ) )
|
||||
{
|
||||
$htmlIdsToIgnoreBecauseTheyAreHiddenByToggles = array_merge( $htmlIdsToIgnoreBecauseTheyAreHiddenByToggles, $element->options['togglesOn'] );
|
||||
}
|
||||
@@ -726,7 +727,7 @@ class Form
|
||||
$match = is_array( $element->value ) ? in_array( $toggleValue, $element->value ) : $toggleValue == $element->value;
|
||||
}
|
||||
|
||||
if ( !$match )
|
||||
if ( !$match or in_array( $element->htmlId, $htmlIdsToIgnoreBecauseTheyAreHiddenByToggles ) )
|
||||
{
|
||||
$htmlIdsToIgnoreBecauseTheyAreHiddenByToggles = array_merge( $htmlIdsToIgnoreBecauseTheyAreHiddenByToggles, $toggleHtmlIds );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user