From 44c40ec02239ad81afbdad2aad101db1dc083073 Mon Sep 17 00:00:00 2001 From: Etienne Pallier Date: Fri, 1 Feb 2019 12:28:38 +0100 Subject: [PATCH] cleanup --- src/Controller/SurCategoriesController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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