Skip to content

Commit

Permalink
SaveEventRuleForm: Escape condition by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Jul 18, 2024
1 parent 416b13e commit 1eeb808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/forms/SaveEventRuleForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function addRule(array $config): int
$db->insert('rule_escalation', [
'rule_id' => $ruleId,
'position' => $position,
'condition' => $escalationConfig['condition'] ?? null,
$db->quoteIdentifier('condition') => $escalationConfig['condition'] ?? null,
'name' => $escalationConfig['name'] ?? null,
'fallback_for' => $escalationConfig['fallback_for'] ?? null,
'changed_at' => $changedAt
Expand Down Expand Up @@ -278,7 +278,7 @@ private function insertOrUpdateEscalations($ruleId, array $escalations, Connecti
$db->insert('rule_escalation', [
'rule_id' => $ruleId,
'position' => $position,
'condition' => $escalationConfig['condition'] ?? null,
$db->quoteIdentifier('condition') => $escalationConfig['condition'] ?? null,
'name' => $escalationConfig['name'] ?? null,
'fallback_for' => $escalationConfig['fallback_for'] ?? null,
'changed_at' => $changedAt
Expand All @@ -289,7 +289,7 @@ private function insertOrUpdateEscalations($ruleId, array $escalations, Connecti
$escalationId = $escalationConfig['id'];
$db->update('rule_escalation', [
'position' => $position,
'condition' => $escalationConfig['condition'] ?? null,
$db->quoteIdentifier('condition') => $escalationConfig['condition'] ?? null,
'name' => $escalationConfig['name'] ?? null,
'fallback_for' => $escalationConfig['fallback_for'] ?? null,
'changed_at' => $changedAt
Expand Down

0 comments on commit 1eeb808

Please sign in to comment.