This commit is contained in:
zhouxudong
2022-04-13 09:26:20 +08:00
parent 233a035b12
commit 1dd4af6ff3
10 changed files with 35 additions and 34 deletions
+2 -2
View File
@@ -1941,12 +1941,12 @@ class bug extends control
* @access public
* @return string
*/
public function ajaxGetUserBugs($userID = '', $id = '' , $appendID = '')
public function ajaxGetUserBugs($userID = '', $id = '' , $appendID = 0)
{
if($userID == '') $userID = $this->app->user->id;
$user = $this->loadModel('user')->getById($userID, 'id');
$account = $user->account;
$bugs = $this->bug->getUserBugPairs($account, true, '', '', '', $appendID);
$bugs = $this->bug->getUserBugPairs($account, true, 0, '', '', $appendID);
if($id) return print(html::select("bugs[$id]", $bugs, '', 'class="form-control"'));
return print(html::select('bug', $bugs, '', 'class=form-control'));