PM-1755 REST endpoint GET /api/1.0/{workspace}/departments
This commit is contained in:
@@ -460,6 +460,10 @@ class Department extends BaseDepartment
|
|||||||
$node['DEP_MANAGER_LASTNAME'] = '';
|
$node['DEP_MANAGER_LASTNAME'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$criteria = new \Criteria();
|
||||||
|
$criteria->add(UsersPeer::DEP_UID, $node['DEP_UID'], \Criteria::EQUAL );
|
||||||
|
$node['DEP_MEMBERS'] = UsersPeer::doCount($criteria);
|
||||||
|
|
||||||
$criteriaCount = new Criteria( 'workflow' );
|
$criteriaCount = new Criteria( 'workflow' );
|
||||||
$criteriaCount->clearSelectColumns();
|
$criteriaCount->clearSelectColumns();
|
||||||
$criteriaCount->addSelectColumn( 'COUNT(*)' );
|
$criteriaCount->addSelectColumn( 'COUNT(*)' );
|
||||||
|
|||||||
@@ -342,6 +342,10 @@ class Department
|
|||||||
$node['DEP_MANAGER_LASTNAME'] = '';
|
$node['DEP_MANAGER_LASTNAME'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$criteria = new \Criteria();
|
||||||
|
$criteria->add(UsersPeer::DEP_UID, $dep_uid, \Criteria::EQUAL );
|
||||||
|
$node['DEP_MEMBERS'] = UsersPeer::doCount($criteria);
|
||||||
|
|
||||||
$criteriaCount = new \Criteria( 'workflow' );
|
$criteriaCount = new \Criteria( 'workflow' );
|
||||||
$criteriaCount->clearSelectColumns();
|
$criteriaCount->clearSelectColumns();
|
||||||
$criteriaCount->addSelectColumn( 'COUNT(*)' );
|
$criteriaCount->addSelectColumn( 'COUNT(*)' );
|
||||||
|
|||||||
Reference in New Issue
Block a user