Skip to content

Commit

Permalink
cou save fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Sep 12, 2025
1 parent 8cd636d commit 3ecbf9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/Model/Table/CousTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public function potentialParents(int $coId, int $id=null, bool $hierarchy=false)
$query = null;

if($hierarchy) {
$query = $this->find('treeList', ['spacer' => '-']);
$query = $this->find('treeList', spacer: '-');
} else {
$query = $this->find('list');
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/Model/Table/GroupsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function addDefaults(int $coId, int $couId=null, bool $rename=false): boo
'status' => SuspendableStatusEnum::Active,
'cou_id' => null
];
};
}

foreach($defaultGroups as $suffix => $attrs) {
// Construct the full group name
Expand Down Expand Up @@ -492,7 +492,7 @@ public function createOwnersGroup($group): int {
// Update the original Group with a pointer to this one
$group->owners_group_id = $ownerGroup->id;

$this->saveOrFail($group);
$this->saveOrFail($group, ['archive' => false]);

return $ownerGroup->id;
}
Expand Down

0 comments on commit 3ecbf9c

Please sign in to comment.