From b096fb77b3fd7da2231fdce4b2cb8e748ad07149 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 15 Jul 2026 09:00:59 +0200 Subject: [PATCH] `EscalationCondition.php`: Set default `operator` value For the `incident_age` column, the `operator` select is disabled and only offers a single option (`>`). Disabled HTML selects don't submit a value, so the operator was previously missing from the submitted data and form could not be submitted. Defaulting the element's value to the first available option ensures it's always set, even while disabled. --- .../forms/EventRuleConfigElements/EscalationCondition.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/forms/EventRuleConfigElements/EscalationCondition.php b/application/forms/EventRuleConfigElements/EscalationCondition.php index 121e177a0..efaa44026 100644 --- a/application/forms/EventRuleConfigElements/EscalationCondition.php +++ b/application/forms/EventRuleConfigElements/EscalationCondition.php @@ -135,6 +135,7 @@ protected function assemble(): void $this->addElement('select', 'operator', [ 'required' => true, 'options' => $operators, + 'value' => array_key_first($operators), 'disabled' => $selectedColumn === 'incident_age' ]);