Skip to content

Commit

Permalink
Add sorting for extra fields values
Browse files Browse the repository at this point in the history
  • Loading branch information
openthink-laurent committed Apr 21, 2015
1 parent b9b21bc commit e0cc007
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/class/extrafields.class.php
Expand Up @@ -808,6 +808,8 @@ function showInputField($key,$value,$moreparam='',$keyprefix='')
$sql.=$sqlwhere;
//print $sql;

$sql .= ' ORDER BY ' . implode(', ', $fields_label);

dol_syslog(get_class($this).'::showInputField type=sellist', LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql)
Expand Down

0 comments on commit e0cc007

Please sign in to comment.