summaryrefslogtreecommitdiffstats
path: root/library/Director/Web/Table/TableWithBranchSupport.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Director/Web/Table/TableWithBranchSupport.php')
-rw-r--r--library/Director/Web/Table/TableWithBranchSupport.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/Director/Web/Table/TableWithBranchSupport.php b/library/Director/Web/Table/TableWithBranchSupport.php
index 7c5b15c..9e412c3 100644
--- a/library/Director/Web/Table/TableWithBranchSupport.php
+++ b/library/Director/Web/Table/TableWithBranchSupport.php
@@ -56,6 +56,9 @@ trait TableWithBranchSupport
$result[$alias] = $column;
}
+ if (isset($result['count_services'])) {
+ $result['count_services'] = 'COUNT(DISTINCT COALESCE(o.uuid, bo.uuid))';
+ }
return $result;
}