mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
Fixed controllers parameters names and number
This commit is contained in:
@@ -55,9 +55,9 @@ class Budget extends APIv1_Controller
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['budget_id']))
|
||||
if(isset($this->post()['budget_id']) && isset($this->post()['geschaeftsjahr_kurzbz']))
|
||||
{
|
||||
$result = $this->BudgetModel->update($this->post()['budget_id'], $this->post());
|
||||
$result = $this->BudgetModel->update(array($this->post()['budget_id'], $this->post()['geschaeftsjahr_kurzbz']), $this->post());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user