@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ///////////////////////////////////////// |
69 | 69 | public function updateAction() |
70 | 70 | { |
71 | - $id = $this->request->getPost('id','int'); |
|
71 | + $id = $this->request->getPost('id', 'int'); |
|
72 | 72 | if ($this->request->isPost()) { |
73 | 73 | $object = $this->getInstance(@$_POST["id"]); |
74 | 74 | $this->setValuesToObject($object); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | //PErmet l'édition d'un seul champ à la fois |
95 | 95 | public function soloUpdateAction() |
96 | 96 | { |
97 | - $name = $this->request->getPost('name','string'); |
|
97 | + $name = $this->request->getPost('name', 'string'); |
|
98 | 98 | //Créer la fonction variable 'set' en fonction du name en POST |
99 | 99 | $func = 'set' . ucfirst($name); |
100 | 100 | $projet = call_user_func($this->model . '::findFirst', $_POST['pk']); |