From 8c9d14575924139d2ea6b32e9f61a7c5b19ea805 Mon Sep 17 00:00:00 2001
From: simnandez <jmenent@2byte.es>
Date: Tue, 24 Dec 2013 13:39:58 +0100
Subject: [PATCH] Fix: Bad url destination into category remove

---
 htdocs/categories/categorie.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php
index 6aa063a9b4e..1750097b120 100644
--- a/htdocs/categories/categorie.php
+++ b/htdocs/categories/categorie.php
@@ -379,7 +379,7 @@ else if ($id || $ref)
 
 		dol_fiche_end();
 
-		formCategory($db,$product,0,($user->rights->produit->creer || $user->rights->service->creer));
+		formCategory($db,$product,0,$socid,($user->rights->produit->creer || $user->rights->service->creer));
 	}
 
 	if ($type == 3)
@@ -604,7 +604,7 @@ else if ($id || $ref)
 
 		dol_fiche_end();
 
-		formCategory($db,$object,4,$user->rights->societe->creer);
+		formCategory($db,$object,4,$socid, $user->rights->societe->creer);
 	}
 }
 
-- 
GitLab