* Fix api helper bug.

This commit is contained in:
songchenxuan
2022-03-31 16:30:00 +08:00
parent 4e2f0a3d86
commit 3ede5cca11
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ class bugsEntry extends entry
if(!$productID and isset($this->requestBody->product)) $productID = $this->requestBody->product;
if(!$productID) return $this->sendError(400, 'Need product id.');
$fields = 'title,project,execution,openedBuild,assignedTo,pri,module,severity,type,story,task,mailto,keywords,steps';
$fields = 'title,project,execution,openedBuild,assignedTo,pri,module,severity,type,story,task,mailto,keywords,steps,uid';
$this->batchSetPost($fields);
$this->setPost('product', $productID);
+2 -2
View File
@@ -162,7 +162,7 @@ class helper extends baseHelper
/* The requestTypes are: GET, PATH_INFO2, PATH_INFO */
if($config->requestType == 'GET')
{
$link = '/index' . substr($link, $pos);
$link = $config->webRoot . 'index' . substr($link, $pos);
}
elseif($config->requestType == 'PATH_INFO2')
{
@@ -204,7 +204,7 @@ function formatTime($time, $format = '')
/**
* Fix for session error.
*
* @param int $class
* @param int $class
* @access protected
* @return void
*/