Skip to content
Snippets Groups Projects
Commit bbcd6a8f authored by ghost of drupal past's avatar ghost of drupal past Committed by Sascha Grossenbacher
Browse files

Issue #3266838 by Charlie ChX Negyesi: In review can't be aborted

parent ae399dec
No related branches found
Tags 8.x-3.0-alpha4
No related merge requests found
......@@ -884,7 +884,7 @@ class JobItem extends ContentEntityBase implements JobItemInterface {
* {@inheritdoc}
*/
public function abortTranslation() {
if (!$this->isActive() || !$this->getTranslatorPlugin()) {
if (!$this->isAbortable() || !$this->getTranslatorPlugin()) {
throw new TMGMTException('Cannot abort job item.');
}
$this->setState(JobItemInterface::STATE_ABORTED);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment