Skip to content
Snippets Groups Projects
Commit a48cc9c0 authored by Andrei Mateescu's avatar Andrei Mateescu
Browse files

Small cleanup.

parent c667de78
No related branches found
No related tags found
No related merge requests found
......@@ -295,8 +295,8 @@ class EntityWorkflowStateItem extends FieldItemBase implements EntityWorkflowSta
*/
protected function invokeTransitionHook($phase) {
$workflow = $this->getWorkflow();
if ($workflow->getTypePlugin()->hasTransitionFromStateToState($this->originalValue, $this->value, $this->getEntity())) {
$transition = $workflow->getTypePlugin()->getTransitionFromStateToState($this->originalValue, $this->value, $this->getEntity());
if ($workflow->getTypePlugin()->hasTransitionFromStateToState($this->originalValue, $this->value)) {
$transition = $workflow->getTypePlugin()->getTransitionFromStateToState($this->originalValue, $this->value);
// Invoke the hook.
$entity = $this->getEntity();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment