mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 01:12:17 +00:00
Fixed controllers parameters names and number
This commit is contained in:
@@ -33,11 +33,11 @@ class Status extends APIv1_Controller
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
$statusID = $this->get('status_id');
|
||||
$status_kurzbz = $this->get('status_kurzbz');
|
||||
|
||||
if(isset($statusID))
|
||||
if(isset($status_kurzbz))
|
||||
{
|
||||
$result = $this->StatusModel->load($statusID);
|
||||
$result = $this->StatusModel->load($status_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Status extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['status_id']))
|
||||
if(isset($this->post()['status_kurzbz']))
|
||||
{
|
||||
$result = $this->StatusModel->update($this->post()['status_id'], $this->post());
|
||||
$result = $this->StatusModel->update($this->post()['status_kurzbz'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user