Skip to content

Commit 1e747c1

Browse files
committed
Fix rule type validation in TransitionModel to ensure proper error handling
1 parent 47ca796 commit 1e747c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

administrator/components/com_workflow/src/Model/TransitionModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ private function validateAutomation(array $data): bool
459459
$app = Factory::getApplication();
460460
$ruleType = $data['rule_type'] ?? 'interval';
461461

462-
if (!in_array($ruleType, ['interval', 'cron'], true)) {
462+
if (!\in_array($ruleType, ['interval', 'cron'], true)) {
463463
$app->enqueueMessage(Text::_('COM_WORKFLOW_AUTOMATION_ERROR_RULE_TYPE'), 'error');
464464

465465
return false;

0 commit comments

Comments
 (0)