diff --git a/api/v1/entries/doclibs.php b/api/v1/entries/doclibs.php index 6438a5abb2..b41d8270f4 100644 --- a/api/v1/entries/doclibs.php +++ b/api/v1/entries/doclibs.php @@ -31,6 +31,7 @@ class doclibsEntry extends Entry $lib->name = $libName; $result[] = $lib; } + krsort($result); $lib = new stdclass(); $lib->id = 'files'; diff --git a/api/v1/entries/execution.php b/api/v1/entries/execution.php index ce54d2ebb5..e668ba5c39 100644 --- a/api/v1/entries/execution.php +++ b/api/v1/entries/execution.php @@ -34,8 +34,8 @@ class executionEntry extends Entry $execution = $this->format($data->data->execution, 'openedDate:time,lastEditedDate:time,closedDate:time,canceledDate:time,begin:date,end:date,realBegan:date,realEnd:date,deleted:bool'); - $this->app->loadConfig('testcase'); - $execution->caseReview = ($config->testcase->needReview or !empty($config->testcase->forceReview)); + $this->loadModel('testcase'); + $execution->caseReview = ($this->config->testcase->needReview or !empty($this->config->testcase->forceReview)); if(!$fields) $this->send(200, $execution);