move select via external JS (CSP fix); rows show id/owner/config + ws counts

This commit is contained in:
2026-07-12 22:44:33 -03:00
parent 5728cf37b2
commit 1b932127d8
7 changed files with 114 additions and 29 deletions

View File

@@ -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) {