fix: [internal] Undefined index sharing_group_id when uploading stix file

pull/9471/head
Jakub Onderka 2024-01-02 17:54:17 +01:00
parent b047fe2f74
commit d6c0514644
2 changed files with 3 additions and 3 deletions

View File

@ -2469,7 +2469,7 @@ class EventsController extends AppController
$original_file,
$this->data['Event']['publish'],
$this->data['Event']['distribution'],
$this->data['Event']['sharing_group_id'],
$this->data['Event']['sharing_group_id'] ?? null,
$this->data['Event']['galaxies_handling'],
$debug
);

View File

@ -5926,7 +5926,7 @@ class Event extends AppModel
* @param string $originalFile
* @param bool $publish
* @param int $distribution
* @param int $sharingGroupId
* @param int|null $sharingGroupId
* @param bool $galaxiesAsTags
* @param bool $debug
* @return int|string|array
@ -5996,7 +5996,7 @@ class Event extends AppModel
* @param string $stixVersion
* @param string $file
* @param int $distribution
* @param int $sharingGroupId
* @param int|null $sharingGroupId
* @param bool $galaxiesAsTags
* @param bool $debug
* @return array