fix: [sharing group blueprint] fixed

pull/8216/head
iglocska 2022-03-05 11:06:24 +01:00
parent 870b9d761b
commit 3aa2d7e310
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class SharingGroupBlueprintsController extends AppController
$this->set('menuData', array('menuList' => 'globalActions', 'menuItem' => 'editMG'));
$this->set('id', $id);
$params = [
'fields' => ['rules']
'fields' => ['rules', 'name']
];
$this->CRUD->edit($id, $params);
if ($this->IndexFilter->isRest()) {

View File

@ -137,7 +137,7 @@ class SharingGroupBlueprint extends AppModel
}
return [
'id' => $id,
'changed' => !$created && $this->__handleSharingGroupOrgs($existingOrgs, $data['orgs'], $id),
'changed' => $this->__handleSharingGroupOrgs($existingOrgs, $data['orgs'], $id) || $created,
'created' => $created,
'failed' => $failed
];