chg: [publishing] reverted the speculative fix

pull/8530/head
iglocska 2022-08-05 14:47:03 +02:00
parent a3f0347a45
commit b5596f687f
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 0 additions and 13 deletions

View File

@ -4300,19 +4300,6 @@ class Event extends AppModel
public function publishRouter($id, $passAlong = null, $user)
{
$event = $this->find('first', array(
'recursive' => -1,
'conditions' => array('Event.id' => $id)
));
if (empty($event)) {
return false;
}
$fieldList = array('published', 'id', 'info', 'publish_timestamp');
$event['Event']['published'] = 1;
$event['Event']['publish_timestamp'] = time();
$this->save($event, array('fieldList' => $fieldList));
if (Configure::read('MISP.background_jobs')) {
/** @var Job $job */