From 8b1d0f4bcac328712032cd0afa759c609dd808b6 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 7 Oct 2011 08:28:42 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.users.tree.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/ws/Controlleur/class.ws.users.tree.php b/inc/ws/Controlleur/class.ws.users.tree.php index af642cc31..5754e9b32 100644 --- a/inc/ws/Controlleur/class.ws.users.tree.php +++ b/inc/ws/Controlleur/class.ws.users.tree.php @@ -64,11 +64,19 @@ class wsUsersTree { $c->facturable_id = $facturable_id; $ce->facturable_entreprise_id = $c->facturable_entreprise_id = $this->entreprises[$facturable_id]; $ce->administrateur_id = $c->administrateur_id = $administrateur_id; + try{ $c->insert(); + }catch(Exception $e){ + fb($e); + } if (isset($evu[$c->entreprise_id])) { continue; } + try{ $ce->insert(); + }catch(Exception $e){ + fb($e); + } $evu[$c->entreprise_id] = true; } // Fabrication de la liste des droits à partir de l'arbre -- 2.39.5