diff --git a/api/v1/entries/taskrecordestimate.php b/api/v1/entries/taskrecordestimate.php index 389a05572f..6bc6bc9092 100644 --- a/api/v1/entries/taskrecordestimate.php +++ b/api/v1/entries/taskrecordestimate.php @@ -36,7 +36,7 @@ class taskRecordEstimateEntry extends Entry if(isset($data->status) and $data->status == 'fail') return $this->sendError(zget($data, 'code', 400), $data->message); $effort = $this->config->edition != 'open' ? ($data->data->efforts ? $data->data->efforts : array()) : ($data->data->estimates ? $data->data->estimates : array()); - $this->send(200, $effort); + $this->send(200, array('effort' => $effort)); }