Commit 44c40ec02239ad81afbdad2aad101db1dc083073

Authored by Etienne Pallier
1 parent 56eca6f8
Exists in master and in 2 other branches dev, dev-IRAP

cleanup

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
src/Controller/SurCategoriesController.php
... ... @@ -187,7 +187,7 @@ class SurCategoriesController extends AppController
187 187 *
188 188 * Called only by JAVASCRIPT
189 189 * Used by Materiels view ADD/EDIT (form), on categorie change
190   - * Pour tester, entrer cette url : /SurCategories/getFromCategorie
  190 + * Pour tester : entrer cette url : /SurCategories/getFromCategorie
191 191 */
192 192 public function getFromCategorie() {
193 193 //$categorie_id = isset($this->request->data['Materiel']['s_categorie_id']) ? $this->request->data['Materiel']['s_categorie_id'] : $this->request->data['Materiel']['categorie_id'];
... ... @@ -209,9 +209,14 @@ class SurCategoriesController extends AppController
209 209 ->first();
210 210 //$surcategorie = $surcategorie->sur_categorie_id;
211 211 $Sur_categ_id = $selected_categorie->sur_categorie_id;
  212 +
  213 + // Pour tester :
  214 + //debug($selected_categorie);
212 215 //debug($Sur_categ_id);
213 216 //$this->set('Sur_categ_id',"5");
  217 + // puis, taper cette url : /SurCategories/getFromCategorie
214 218 $this->set('Sur_categ_id', $Sur_categ_id);
  219 +
215 220 //$this->layout = 'ajax';
216 221 $this->viewBuilder()->layout = 'ajax';
217 222 }
... ...