From ca1b6ae7314dbf472242d8941d06127c80d0283f Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 23 Sep 2016 00:17:55 +0800 Subject: [PATCH] fix getStatus pass model in in order to find status in certain model --- src/components/WorkflowDbSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WorkflowDbSource.php b/src/components/WorkflowDbSource.php index fb500e4..7effaeb 100644 --- a/src/components/WorkflowDbSource.php +++ b/src/components/WorkflowDbSource.php @@ -157,7 +157,7 @@ public function __construct($config = []) */ public function getStatus($id, $model = null) { - list($wId, $stId) = $this->parseStatusId($id); + list($wId, $stId) = $this->parseStatusId($id, $model); $canonicalStId = $wId . self::SEPARATOR_STATUS_NAME . $stId; if (!isset($this->_s[$wId])) { $this->_s[$wId] = [];