Accomodate new contacts in flow chart

This commit is contained in:
Rich Lott / Artful Robot 2025-03-31 13:51:11 +01:00
parent 216d9a46ee
commit d5ee875aef
3 changed files with 11 additions and 10 deletions

View file

@ -306,7 +306,7 @@ class GetFlows extends \Civi\Api4\Generic\AbstractAction {
// Don't use exchange array so as not to gazump non-array data(?)
foreach ($data as $row) {
$result[] = [
'from_category_id' => (int) (($row['from_category_id']) ?: $defaultCategoryId),
'from_category_id' => (int) (($row['from_category_id'])), // ?: $defaultCategoryId,
'to_category_id' => (int) $row['to_category_id'],
'contact_count' => (int) $row['contact_count'],
];