Fixed controllers parameters names and number

This commit is contained in:
paolo
2016-05-19 15:51:15 +02:00
parent 674e832392
commit 32acc8a414
84 changed files with 415 additions and 360 deletions
@@ -56,9 +56,14 @@ class Zeitwunsch extends APIv1_Controller
{
if($this->_validate($this->post()))
{
if(isset($this->post()['zeitwunsch_id']))
if(isset($this->post()['tag']) && isset($this->post()['mitarbeiter_uid']) && isset($this->post()['stunde']))
{
$result = $this->ZeitwunschModel->update($this->post()['zeitwunsch_id'], $this->post());
$pksArray = array($this->post()['tag'],
$this->post()['mitarbeiter_uid'],
$this->post()['stunde']
);
$result = $this->ZeitwunschModel->update($pksArray, $this->post());
}
else
{