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 '