Skip to content

Commit 13bad07

Browse files
authored
Merge pull request #23 from halservice/develop
updated workflow_transitions
2 parents d6265e6 + d1b7680 commit 13bad07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/WorkflowTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public function workflow_can($transition, $workflow = null)
1919
return Workflow::get($this, $workflow)->can($this, $transition);
2020
}
2121

22-
public function workflow_transitions()
22+
public function workflow_transitions($workflow = null)
2323
{
24-
return Workflow::get($this)->getEnabledTransitions($this);
24+
return Workflow::get($this, $workflow)->getEnabledTransitions($this);
2525
}
2626

2727
public function workflow_get($workflow = null)

0 commit comments

Comments
 (0)