Fix sort on file manager of website

This commit is contained in:
Laurent Destailleur 2020-05-03 13:00:39 +02:00
parent 518853bb96
commit fcee3a68f4
2 changed files with 8 additions and 3 deletions

View File

@ -1132,6 +1132,9 @@ table[summary="list_of_modules"] .fa-cog {
padding-left: 5px;
padding-right: 5px;
}
.hideonsmartphone { display: none; }
.hideonsmartphoneimp { display: none !important; }
}
/* Force values for small screen 570 */
@ -1189,8 +1192,6 @@ table[summary="list_of_modules"] .fa-cog {
max-width: 138px; /* length of input text in the quick search box when using a smartphone and without dolidroid */
}
.hideonsmartphone { display: none; }
.hideonsmartphoneimp { display: none !important; }
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
.maxwidthonsmartphone, #search_newcompany.ui-autocomplete-input { max-width: 100px; }
.maxwidth50onsmartphone { max-width: 40px; }

View File

@ -271,7 +271,11 @@ if (GETPOST('optioncontent')) $algo .= 'content';
if (GETPOST('optionsitefiles')) $algo .= 'sitefiles';
if (empty($sortfield)) {
$sortfield = 'pageurl'; $sortorder = 'ASC';
if ($action == 'file_manager') {
$sortfield='name'; $sortorder = 'ASC';
} else {
$sortfield = 'pageurl'; $sortorder = 'ASC';
}
}
$searchkey = GETPOST('searchstring', 'none');