From b0e2e42b8650ec7a61c0ac86e6a7764b74e2b331 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 28 Sep 2007 08:45:10 +0000 Subject: [PATCH] Fix: Mauvaise activation du mode fckeditor des notes sur user/groups --- htdocs/user/fiche.php | 2 +- htdocs/user/group/fiche.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 652818a4bbf..82e59f82a10 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -650,7 +650,7 @@ if (($action == 'create') || ($action == 'adduserldap')) print ''; print $langs->trans("Note"); print ''; - if ($conf->fckeditor->enabled) + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_USER) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); $doleditor=new DolEditor('note','',180,'dolibarr_notes','',false); diff --git a/htdocs/user/group/fiche.php b/htdocs/user/group/fiche.php index 846c041d002..fad0ac15dc6 100644 --- a/htdocs/user/group/fiche.php +++ b/htdocs/user/group/fiche.php @@ -181,10 +181,10 @@ if ($action == 'create') print ''; print "".''.$langs->trans("Note").''; - if ($conf->fckeditor->enabled) + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_USER) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); - $doleditor=new DolEditor('note','',180,'dolibarr_notes','',false); + $doleditor=new DolEditor('note','',240,'dolibarr_notes','',true); $doleditor->Create(); } else @@ -404,15 +404,15 @@ else print "\n"; print ''.$langs->trans("Note").''; print ''; - if ($conf->fckeditor->enabled) + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_USER) { require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); - $doleditor=new DolEditor('note',$group->note,180,'dolibarr_notes','',false); + $doleditor=new DolEditor('note',$group->note,240,'dolibarr_notes','',true); $doleditor->Create(); } else { - print ''; }