From 3390a514e1173537810f02c5bf28fd1603f4efd9 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 28 Jul 2012 09:57:04 +0200 Subject: [PATCH] Fix: include wrong class --- htdocs/commande/fiche.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index fcf6b5efee3..b72d6ae9115 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1280,6 +1280,9 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G *********************************************************************/ if ($action == 'create' && $user->rights->commande->creer) { + //WYSIWYG Editor + require_once(DOL_DOCUMENT_ROOT."/core/class/doleditor.class.php"); + print_fiche_titre($langs->trans('CreateOrder')); dol_htmloutput_mesg($mesg,$mesgs,'error'); @@ -1464,9 +1467,6 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G } } - //WYSIWYG Editor - include_once(DOL_DOCUMENT_ROOT.'/core/modules/commande/modules_commande.php'); - // Template to use by default print ''.$langs->trans('Model').''; print ''; @@ -1480,7 +1480,7 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G print ''; print ''.$langs->trans('NotePublic').''; print ''; - + $doleditor = new DolEditor('note_public', $note_public, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, 70); print $doleditor->Create(1); //print ''; @@ -1492,7 +1492,7 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G print ''; print ''.$langs->trans('NotePrivate').''; print ''; - + $doleditor=new DolEditor('note', $note_private, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, 70); print $doleditor->Create(1); //print '';