* Fix bug #25234,25233.

This commit is contained in:
tianshujie
2022-07-14 09:57:56 +08:00
parent ace5265a11
commit b5a9fe8c52
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -633,7 +633,7 @@ class commonModel extends model
}
else if(!defined('TUTORIAL'))
{
$params = "programID=0&copyProjectID=0&extra=from=global";
$params = "programID=0&extra=from=global";
$createMethod = 'createGuide';
$attr = 'data-toggle="modal"';
}
+1 -1
View File
@@ -501,7 +501,7 @@ class project extends control
}
if($this->app->tab == 'doc') unset($this->lang->doc->menu->project['subMenu']);
if($this->app->tab == 'product' and isset($output['productID'])) $this->loadModel('product')->setMenu($output['productID']);
if($this->app->tab == 'product' and !empty($output['productID'])) $this->loadModel('product')->setMenu($output['productID']);
$topProgramID = $this->program->getTopByID($programID);
+1 -1
View File
@@ -43,7 +43,7 @@
<table class='table table-form'>
<tr>
<th class='w-130px'><?php echo $lang->project->parent;?></th>
<?php $disabled = $this->app->tab == 'product' ? 'disabled' : '';?>
<?php $disabled = ($this->app->tab == 'product' and $productID) ? 'disabled' : '';?>
<td><?php echo html::select('parent', $programList, $programID, "class='form-control chosen' onchange='setParentProgram(this.value)' $disabled");?></td>
<?php if($disabled) echo html::hidden('parent', $programID);?>
<td>