This commit is contained in:
holan20180123
2021-08-24 14:26:21 +08:00
parent a9b309fefc
commit 7634ed89a2
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -544,9 +544,12 @@ class programModel extends model
->orderBy('grade desc, `order`')->get();
$stmt = $this->dbh->query($query);
$vars = '';
if($moduleName == 'project' and $methodName == 'create') $vars = "model={$this->session->projectModel}&";
while($program = $stmt->fetch())
{
$link = $from == 'program' ? helper::createLink($moduleName, $methodName, "programID=$program->id") : helper::createLink('product', 'all', "programID=$program->id" . $vars);
$link = $from == 'program' ? helper::createLink($moduleName, $methodName, "{$vars}programID=$program->id") : helper::createLink('product', 'all', "programID=$program->id" . $vars);
$linkHtml = html::a($link, $program->name, '', "id='program$program->id' class='text-ellipsis' title=$program->name");
if(isset($programMenu[$program->id]) and !empty($programMenu[$program->id]))
+1
View File
@@ -382,6 +382,7 @@ class project extends control
}
if($this->app->openApp == 'program') $this->loadModel('program')->setMenu($programID);
$this->session->set('projectModel', $model);
$name = '';
$code = '';