* Fix bug.

This commit is contained in:
leiyong
2020-10-30 14:55:36 +08:00
parent 7616d6e260
commit f6ec62adba
6 changed files with 16 additions and 24 deletions
+3 -4
View File
@@ -133,7 +133,7 @@ class program extends control
/**
* Create a project.
*
* @param string $parentProgramID
* @param int $parentProgramID
* @access public
* @return void
*/
@@ -157,7 +157,7 @@ class program extends control
$this->view->pmUsers = $this->loadModel('user')->getPairs('noclosed|nodeleted|pmfirst');
$this->view->poUsers = $this->user->getPairs('noclosed|nodeleted|pofirst');
$this->view->users = $this->user->getPairs('noclosed|nodeleted');
$this->view->parentProgram = $parentProgramID ? $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($parentProgramID)->fetch() : '';
$this->view->parentProgram = $parentProgramID ? $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($parentProgramID)->fetch() : 0;
$this->view->parents = $this->program->getParentPairs();
$this->display();
@@ -187,8 +187,7 @@ class program extends control
$this->action->logHistory($actionID, $changes);
}
$url = $this->session->PRJList ? $this->session->PRJList : inlink('pgmbrowse');
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $url));
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inLink('PGMBrowse')));
}
$parents = $this->program->getParentPairs();