* Rebuild the code.
This commit is contained in:
@@ -2610,7 +2610,13 @@ class storyModel extends model
|
||||
$productParam = ($type == 'byproduct' and $param) ? $param : $this->cookie->storyProductParam;
|
||||
$branchParam = ($type == 'bybranch' and $param !== '') ? $param : $this->cookie->storyBranchParam;
|
||||
$moduleParam = ($type == 'bymodule' and $param !== '') ? $param : $this->cookie->storyModuleParam;
|
||||
$modules = (empty($moduleParam) or strpos('allstory,unclosed,bymodule', "$type") === false) ? array() : $this->dao->select('id')->from(TABLE_MODULE)->where('path')->like("%,$moduleParam,%")->andWhere('type')->eq('story')->andWhere('deleted')->eq(0)->fetchPairs();
|
||||
|
||||
$modules = array();
|
||||
if(!empty($moduleParam) or strpos('allstory,unclosed,bymodule', $type) !== false)
|
||||
{
|
||||
$modules = $this->dao->select('id')->from(TABLE_MODULE)->where('path')->like("%,$moduleParam,%")->andWhere('type')->eq('story')->andWhere('deleted')->eq(0)->fetchPairs();
|
||||
}
|
||||
|
||||
if(strpos($branchParam, ',') !== false) list($productParam, $branchParam) = explode(',', $branchParam);
|
||||
|
||||
$unclosedStatus = $this->lang->story->statusList;
|
||||
|
||||
Reference in New Issue
Block a user