forked from Wavyzz/dolibarr
Update commonobject.class.php
This commit is contained in:
committed by
GitHub
parent
c3cfb306fd
commit
ea1a01b33f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user