public function action() { if ($this->task != null) { if ($this->task->getDocumentType() == 'Task') { $this->task->setCompletion($this); } } return parent::action(); }
public function action() { if ($this->task != null) { if ($this->task->getDocumentType() == 'Task') { if ($this->task->getProcessing() != null) { $this->setProcessing($this->task->getProcessing()); } $this->task->setProcessing($this); } } return parent::action(); }