Fix sort of email templates
This commit is contained in:
parent
f48cc46763
commit
b0941967f0
@ -75,7 +75,7 @@ $offset = $listlimit * $page ;
|
|||||||
$pageprev = $page - 1;
|
$pageprev = $page - 1;
|
||||||
$pagenext = $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';
|
if (empty($sortorder)) $sortorder='ASC';
|
||||||
|
|
||||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
// 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=array();
|
||||||
$tabname[25]= MAIN_DB_PREFIX."c_email_templates";
|
$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
|
// Nom des champs en resultat de select pour affichage du dictionnaire
|
||||||
$tabfield=array();
|
$tabfield=array();
|
||||||
$tabfield[25]= "label,lang,type_template,fk_user,private,position,topic,joinfiles,content";
|
$tabfield[25]= "label,lang,type_template,fk_user,private,position,topic,joinfiles,content";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user