Skip to content

Commit

Permalink
fix: job drafts cannot be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
TiSiE committed Jul 30, 2021
1 parent ee1fad7 commit f70202d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/Jobs/src/Controller/ManageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,12 @@ public function deleteAction()
$job = $this->initializeJob()->get($this->params());
$this->acl($job, 'edit');

$this->repositoryService->remove($job);
$this->repositoryService->remove($job, true);

$this->notification()->success(/*@translate*/ 'Job has been deleted.');
return $this->redirect()->toRoute('lang/jobs');

}

/**
* Assign a template to a job posting
*
Expand Down

0 comments on commit f70202d

Please sign in to comment.