* Finish task #98498.

This commit is contained in:
hufangzhou
2023-07-25 14:03:28 +08:00
parent 2e8a3dfd70
commit aad6279003
3 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -392,14 +392,18 @@ class programplan extends control
*
* @param int $stageID
* @param string $attribute
* @param string $projectModel
* @access public
* @return int
*/
public function ajaxGetAttribute($stageID, $attribute)
public function ajaxGetAttribute($stageID, $attribute, $projectModel = '')
{
$this->app->loadLang('stage');
$parentAttribute = $this->dao->select('attribute')->from(TABLE_EXECUTION)->where('id')->eq($stageID)->fetch('attribute');
if($projectModel == 'ipd') $this->lang->stage->typeList = $this->lang->stage->ipdTypeList;
if(empty($parentAttribute) or $parentAttribute == 'mix')
{
return print(html::select('attribute', $this->lang->stage->typeList, $attribute, "class='form-control chosen'"));