move select via external JS (CSP fix); rows show id/owner/config + ws counts
This commit is contained in:
@@ -124,8 +124,13 @@ class WorkspaceOrgHelper extends Base
|
||||
|
||||
$groups[self::DEFAULT_WORKSPACE] = array();
|
||||
|
||||
foreach ($this->projectUserRoleModel->getActiveProjectsByUser($this->uid()) as $project_id => $project_name) {
|
||||
$groups[$this->workspaceOf($project_id)][] = array('id' => (int) $project_id, 'name' => $project_name);
|
||||
// Full project rows (id, name, owner_name, is_active, ...) for the user's active projects,
|
||||
// the same data source the native "My projects" dashboard uses.
|
||||
$ids = $this->projectPermissionModel->getActiveProjectIds($this->uid());
|
||||
$projects = empty($ids) ? array() : $this->projectModel->getQueryColumnStats($ids)->findAll();
|
||||
|
||||
foreach ($projects as $project) {
|
||||
$groups[$this->workspaceOf($project['id'])][] = $project;
|
||||
}
|
||||
|
||||
foreach ($groups as &$list) {
|
||||
|
||||
Reference in New Issue
Block a user