diff --git a/api/v1/entries/bugs.php b/api/v1/entries/bugs.php index 3a8de36727..738de8a39d 100644 --- a/api/v1/entries/bugs.php +++ b/api/v1/entries/bugs.php @@ -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); diff --git a/framework/api/helper.class.php b/framework/api/helper.class.php index 393952e38d..be230ce905 100644 --- a/framework/api/helper.class.php +++ b/framework/api/helper.class.php @@ -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 */