diff --git a/htdocs/admin/mails_templates.php b/htdocs/admin/mails_templates.php index 79614cbd3a0..40daa521989 100644 --- a/htdocs/admin/mails_templates.php +++ b/htdocs/admin/mails_templates.php @@ -75,7 +75,7 @@ $offset = $listlimit * $page ; $pageprev = $page - 1; $pagenext = $page + 1; -if (empty($sortfield)) $sortfield='label, lang, position'; +if (empty($sortfield)) $sortfield='type_template, lang, position, label'; if (empty($sortorder)) $sortorder='ASC'; // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context @@ -85,10 +85,6 @@ $hookmanager->initHooks(array('emailtemplates')); $tabname=array(); $tabname[25]= MAIN_DB_PREFIX."c_email_templates"; -// Criteria to sort dictionaries -$tabsqlsort=array(); -$tabsqlsort[25]="label ASC, lang ASC, position ASC"; - // Nom des champs en resultat de select pour affichage du dictionnaire $tabfield=array(); $tabfield[25]= "label,lang,type_template,fk_user,private,position,topic,joinfiles,content";