mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-13 01:59:28 +00:00
Fixed controllers parameters names and number
This commit is contained in:
@@ -33,11 +33,11 @@ class Lgartcode extends APIv1_Controller
|
||||
*/
|
||||
public function getLgartcode()
|
||||
{
|
||||
$lgartcodeID = $this->get('lgartcode_id');
|
||||
$lgartcode = $this->get('lgartcode');
|
||||
|
||||
if(isset($lgartcodeID))
|
||||
if(isset($lgartcode))
|
||||
{
|
||||
$result = $this->LgartcodeModel->load($lgartcodeID);
|
||||
$result = $this->LgartcodeModel->load($lgartcode);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class Lgartcode extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['lgartcode_id']))
|
||||
if(isset($this->post()['lgartcode']))
|
||||
{
|
||||
$result = $this->LgartcodeModel->update($this->post()['lgartcode_id'], $this->post());
|
||||
$result = $this->LgartcodeModel->update($this->post()['lgartcode'], $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user