2
0
forked from Wavyzz/dolibarr

Update commonobject.class.php

This commit is contained in:
Laurent Destailleur
2022-10-17 23:35:34 +02:00
committed by GitHub
parent c3cfb306fd
commit ea1a01b33f

View File

@@ -6148,9 +6148,9 @@ abstract class CommonObject
//fix #22571 : order by could be set
//remember 'sellist:TableName:LabelFieldName[:KeyFieldName[:KeyFieldParent[:Filter[:Sortfield]]]]',
if(isset($InfoFieldList[5]) && $InfoFieldList[5] != "") {
$sql .= ' ORDER BY '.$InfoFieldList[5];
$sql .= " ORDER BY ".$this->db->escape($InfoFieldList[5]);
} else {
$sql .= ' ORDER BY '.implode(', ', $fields_label);
$sql .= " ORDER BY ".$this->db->sanitize(implode(', ', $fields_label));
}
dol_syslog(get_class($this).'::showInputField type=sellist', LOG_DEBUG);