Skip to content

Commit

Permalink
[Jobs] Fix: Deactivating a job does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
TiSiE committed Oct 13, 2017
1 parent 80d712a commit 6a819c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/Jobs/src/Jobs/Controller/ManageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ protected function save()
protected function changeStatus(JobInterface $job, $status)
{
if ($job instanceOf JobSnapshot) {
$job = $job->getSnapshotMeta()->getEntity();
$job = $job->getOriginalEntity();
}

$oldStatus = $job->getStatus();
Expand Down Expand Up @@ -633,6 +633,7 @@ public function deactivateAction()
} catch (\Exception $e) {
$this->notification()->danger(/*@translate*/ 'Job could not be deactivated');
}
exit;
return $this->save(array('page' => 2));
}

Expand Down

0 comments on commit 6a819c2

Please sign in to comment.