Merge branch '2.4' into develop

pull/7168/head
iglocska 2021-03-05 16:17:00 +01:00
commit 0b408a131d
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -713,12 +713,12 @@ class SharingGroup extends AppModel
$this->create();
$newSG = array();
$date = date('Y-m-d H:i:s');
if (empty($sg['name']) || empty($sg['releasability'])) {
if (empty($sg['name'])) {
return false;
}
$newSG = [
'name' => $sg['name'],
'releasability' => $sg['releasability'],
'releasability' => !isset($sg['releasability']) ? '' : $sg['releasability'],
'description' => !isset($sg['description']) ? '' : $sg['description'],
'uuid' => !isset($sg['uuid']) ? CakeText::uuid() : $sg['uuid'],
'organisation_uuid' => !isset($sg['organisation_uuid']) ? $user['Organisation']['uuid'] : $sg['organisation_uuid'],