also set publication date during publishing
This commit is contained in:
parent
2942ca376e
commit
ef0b5131ce
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user