Commit 44c40ec02239ad81afbdad2aad101db1dc083073
1 parent
56eca6f8
Exists in
master
and in
2 other branches
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,7 +187,7 @@ class SurCategoriesController extends AppController | ||
187 | * | 187 | * |
188 | * Called only by JAVASCRIPT | 188 | * Called only by JAVASCRIPT |
189 | * Used by Materiels view ADD/EDIT (form), on categorie change | 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 | public function getFromCategorie() { | 192 | public function getFromCategorie() { |
193 | //$categorie_id = isset($this->request->data['Materiel']['s_categorie_id']) ? $this->request->data['Materiel']['s_categorie_id'] : $this->request->data['Materiel']['categorie_id']; | 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,9 +209,14 @@ class SurCategoriesController extends AppController | ||
209 | ->first(); | 209 | ->first(); |
210 | //$surcategorie = $surcategorie->sur_categorie_id; | 210 | //$surcategorie = $surcategorie->sur_categorie_id; |
211 | $Sur_categ_id = $selected_categorie->sur_categorie_id; | 211 | $Sur_categ_id = $selected_categorie->sur_categorie_id; |
212 | + | ||
213 | + // Pour tester : | ||
214 | + //debug($selected_categorie); | ||
212 | //debug($Sur_categ_id); | 215 | //debug($Sur_categ_id); |
213 | //$this->set('Sur_categ_id',"5"); | 216 | //$this->set('Sur_categ_id',"5"); |
217 | + // puis, taper cette url : /SurCategories/getFromCategorie | ||
214 | $this->set('Sur_categ_id', $Sur_categ_id); | 218 | $this->set('Sur_categ_id', $Sur_categ_id); |
219 | + | ||
215 | //$this->layout = 'ajax'; | 220 | //$this->layout = 'ajax'; |
216 | $this->viewBuilder()->layout = 'ajax'; | 221 | $this->viewBuilder()->layout = 'ajax'; |
217 | } | 222 | } |