fix processor not updating when null

This commit is contained in:
Rich Lott / Artful Robot 2025-03-03 11:53:47 +00:00
parent b9de61f9f7
commit 93be452053

View file

@ -119,7 +119,7 @@ class Processor {
$changes = CRM_Core_DAO::executeQuery(<<<SQL
SELECT id, category_definition_id, next_category
FROM civicrm_contact_category
WHERE next_category <> category_definition_id $singleContactClause
WHERE (category_definition_id IS NULL OR next_category <> category_definition_id) $singleContactClause
ORDER BY category_definition_id, next_category
SQL);
$lastChange = [0, 0];