diff --git a/src/Controller/SurCategoriesController.php b/src/Controller/SurCategoriesController.php index 63b8c9b..a88055b 100755 --- a/src/Controller/SurCategoriesController.php +++ b/src/Controller/SurCategoriesController.php @@ -187,7 +187,7 @@ class SurCategoriesController extends AppController * * Called only by JAVASCRIPT * Used by Materiels view ADD/EDIT (form), on categorie change - * Pour tester, entrer cette url : /SurCategories/getFromCategorie + * Pour tester : entrer cette url : /SurCategories/getFromCategorie */ public function getFromCategorie() { //$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 ->first(); //$surcategorie = $surcategorie->sur_categorie_id; $Sur_categ_id = $selected_categorie->sur_categorie_id; + + // Pour tester : + //debug($selected_categorie); //debug($Sur_categ_id); //$this->set('Sur_categ_id',"5"); + // puis, taper cette url : /SurCategories/getFromCategorie $this->set('Sur_categ_id', $Sur_categ_id); + //$this->layout = 'ajax'; $this->viewBuilder()->layout = 'ajax'; } -- libgit2 0.21.2