Skip to content
Snippets Groups Projects

change default value from $index to a fixed 0.

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -200,7 +200,7 @@ class ConditionsTable extends FormElement {
'#type' => 'checkbox',
'#title' => t('Negate'),
'#parents' => array_merge($element['#parents'], [$index, 'negate_condition']),
'#default_value' => $condition['configuration']['negate_condition'] ?? $index,
'#default_value' => $condition['configuration']['negate_condition'] ?? 0,
'#access' => !isset($condition_form['configuration']['form']['negate']),
];
Loading