Merge pull request #13696 from atm-gauthier/10.0_fix_export_model_list_display_order

FIX : model export list must be sorted by label
This commit is contained in:
Laurent Destailleur 2020-04-22 18:08:58 +02:00 committed by GitHub
commit ab586b8f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ class FormOther
$sql.= " FROM ".MAIN_DB_PREFIX."export_model";
$sql.= " WHERE type = '".$type."'";
if (!empty($fk_user)) $sql.=" AND fk_user IN (0, ".$fk_user.")"; // An export model
$sql.= " ORDER BY rowid";
$sql.= " ORDER BY label";
$result = $this->db->query($sql);
if ($result)
{