Merge pull request #10759 from altatof/ml

NEW : sort list of models alphabetically
This commit is contained in:
Laurent Destailleur 2019-03-07 12:47:50 +01:00 committed by GitHub
commit 8ffab05f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -682,6 +682,7 @@ class FormFile
// Model
if (! empty($modellist))
{
asort($modellist);
$out.= '<span class="hideonsmartphone">'.$langs->trans('Model').' </span>';
if (is_array($modellist) && count($modellist) == 1) // If there is only one element
{