also set publication date during publishing

This commit is contained in:
Arno Kaimbacher 2019-02-15 13:55:14 +01:00
parent 2942ca376e
commit ef0b5131ce

View File

@ -47,9 +47,11 @@ class WorkflowController extends Controller
//$this->_workflowHelper->changeState($document, $targetState); //$this->_workflowHelper->changeState($document, $targetState);
$dataset->setServerState($targetState); $dataset->setServerState($targetState);
// if ($targetState == 'published') { if ($targetState == 'published') {
// $this->_sendNotification($document, $form); //$this->_sendNotification($document, $form);
// } $time = new \Illuminate\Support\Carbon();
$dataset->server_date_published = $time;
}
$dataset->save(); $dataset->save();
session()->flash('flash_message', 'You have puplished 1 dataset!'); session()->flash('flash_message', 'You have puplished 1 dataset!');
return redirect()->route('settings.review.index'); return redirect()->route('settings.review.index');