fix: [feed] Feed pulls don't update the timestamp of the event

- affects freetext feeds
- this blocks the further propagation of the modifications
pull/4237/head
iglocska 2019-02-27 20:53:33 +01:00
parent 99b2dad95d
commit 0cbd53f3e7
1 changed files with 4 additions and 0 deletions

View File

@ -1024,6 +1024,10 @@ class Feed extends AppModel
$job->saveField('progress', 50 + round((50 * ((($k + 1) * 100) / count($data)))));
}
}
if (!empty($data)) {
unset($event['Event']['timestamp']);
$this->Event->save($event);
}
if ($feed['Feed']['publish']) {
$this->Event->publishRouter($event['Event']['id'], null, $user);
}