mirror of https://github.com/MISP/MISP
fix: [sharing group blueprint] fixed
parent
870b9d761b
commit
3aa2d7e310
|
@ -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()) {
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue