Fix: reorder include
This commit is contained in:
parent
2a1c6422ac
commit
c77ecc15c9
@ -1302,6 +1302,9 @@ $formorder = new FormOrder($db);
|
|||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
if ($action == 'create' && $user->rights->commande->creer)
|
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'));
|
print_fiche_titre($langs->trans('CreateOrder'));
|
||||||
|
|
||||||
dol_htmloutput_mesg($mesg,$mesgs,'error');
|
dol_htmloutput_mesg($mesg,$mesgs,'error');
|
||||||
@ -1480,15 +1483,10 @@ if ($action == 'create' && $user->rights->commande->creer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT.'/core/modules/commande/modules_commande.php');
|
|
||||||
|
|
||||||
//WYSIWYG Editor
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/core/class/doleditor.class.php");
|
|
||||||
|
|
||||||
// Template to use by default
|
// Template to use by default
|
||||||
print '<tr><td>'.$langs->trans('Model').'</td>';
|
print '<tr><td>'.$langs->trans('Model').'</td>';
|
||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
|
include_once(DOL_DOCUMENT_ROOT.'/core/modules/commande/modules_commande.php');
|
||||||
$liste=ModelePDFCommandes::liste_modeles($db);
|
$liste=ModelePDFCommandes::liste_modeles($db);
|
||||||
print $form->selectarray('model',$liste,$conf->global->COMMANDE_ADDON_PDF);
|
print $form->selectarray('model',$liste,$conf->global->COMMANDE_ADDON_PDF);
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user