* Adjust code.

This commit is contained in:
tianshujie98
2021-07-14 14:15:22 +08:00
parent 1901703fd8
commit 25b54558d0
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -490,6 +490,15 @@ $(function()
return false;
}
})
/* If the product line is selected, the product and project are selected by default. */
$('[id^=productLines]').each(function()
{
if($(this).prop('checked'))
{
$('[data-line=' + $(this).val() +']').prop('checked', true);
}
})
})
$('[name^=products]').change(function()
+1 -1
View File
@@ -4246,7 +4246,7 @@ class upgradeModel extends model
public function createProgram($productIdList = array(), $projectIdList = array())
{
$this->app->loadLang('program');
$data = fixer::input('post')->get();
$data = fixer::input('post')->get();
$account = isset($this->app->user->account) ? $this->app->user->account : '';
if(isset($data->newProgram))