- fixed conditional logic on Profile Form (by Denis);

- fixed displaying conditional fields at backend settings;
This commit is contained in:
nikitozzzzzzz
2017-08-30 11:40:35 +03:00
parent 472f5d21bc
commit e848301fa9
2 changed files with 9 additions and 4 deletions
@@ -186,4 +186,9 @@ textarea.um-forms-field.um-small-field {
border-radius: 3px;
height: auto;
width: auto !important;
}
.um-forms-line[data-conditional] {
display: none;
}
+4 -4
View File
@@ -272,12 +272,12 @@
break;
case 'empty':
$state = ( $field ) ? 1 : 0;
$state = ( ! $field ) ? 1 : 0;
break;
case 'not empty':
$state = ( ! $field ) ? 1 : 0;
$state = ( $field ) ? 1 : 0;
break;
case 'greater than':
@@ -336,12 +336,12 @@
break;
case 'empty':
$state = ( $field ) ? 0 : 1;
$state = ( ! $field ) ? 0 : 1;
break;
case 'not empty':
$state = ( ! $field ) ? 0 : 1;
$state = ( $field ) ? 0 : 1;
break;
case 'greater than':