Merge pull request #12642 from grgars/dev/issue-12639

Fix #12639: match accounts arg of rule trigger & test
This commit is contained in:
James Cole
2026-08-23 05:58:31 +02:00
committed by GitHub
@@ -85,7 +85,7 @@ final class TriggerController extends Controller
// add a range:
$ruleEngine->addOperator(['type' => 'date_before', 'value' => $parameters['end']->format('Y-m-d')]);
}
if (array_key_exists('accounts', $parameters) && '' !== $parameters['accounts']) {
if (array_key_exists('accounts', $parameters) && is_array($parameters['accounts']) && count($parameters['accounts']) > 0) {
$ruleEngine->addOperator(['type' => 'account_id', 'value' => implode(',', $parameters['accounts'])]);
}