From 3a242c6f37041364a59eb4bf74ef42993f5e4ab4 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 7 May 2007 14:42:45 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20si=20fckeditor=20est=20activ=E9=20pour?= =?UTF-8?q?=20les=20descriptions=20produits=20alors=20on=20l'active=20pour?= =?UTF-8?q?=20les=20lignes=20de=20d=E9tails=20produits,=20et=20inversement?= =?UTF-8?q?=20si=20les=20lignes=20de=20d=E9tails=20sont=20d=E9sactiv=E9e?= =?UTF-8?q?=20alors=20on=20d=E9sactive=20les=20descriptions=20produits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/fckeditor.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index 80e81b0d049..01672426227 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -58,12 +58,22 @@ foreach($modules as $const => $desc) if ($_GET["action"] == 'activate_'.strtolower($const)) { dolibarr_set_const($db, "FCKEDITOR_ENABLE_".$const, "1"); + //si fckeditor est activé dans la description produit/service, on l'active dans les documents + if ($const == 'PRODUCTDESC') + { + dolibarr_set_const($db, "FCKEDITOR_ENABLE_DETAILS", "1"); + } Header("Location: fckeditor.php"); exit; } if ($_GET["action"] == 'disable_'.strtolower($const)) { dolibarr_del_const($db, "FCKEDITOR_ENABLE_".$const); + //si fckeditor est desactivé dans les documents, on le désactive dans la description produit/service + if ($const == 'DETAILS') + { + dolibarr_del_const($db, "FCKEDITOR_ENABLE_PRODUCTDESC"); + } Header("Location: fckeditor.php"); exit; }