* Fixed whitelist show and hide issue.

This commit is contained in:
tianshujie
2023-10-23 14:02:39 +08:00
parent 527911b257
commit 5dec2ee80b
7 changed files with 62 additions and 32 deletions
+3 -2
View File
@@ -447,9 +447,10 @@ class project extends control
*
* @param int $projectID
* @param string $from
* @param int $programID
* @access public
*/
public function edit(int $projectID, string $from = '')
public function edit(int $projectID, string $from = '', int $programID = 0)
{
$project = $this->project->getByID($projectID);
$this->project->setMenu($projectID);
@@ -491,7 +492,7 @@ class project extends control
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => $locateLink));
}
$this->projectZen->buildEditForm($projectID, $project);
$this->projectZen->buildEditForm($projectID, $project, $from, $programID);
}
/**