LSformElement::valueWithUnit : sort units params before using

This commit is contained in:
Benjamin Renard 2013-05-11 19:23:40 +02:00
parent 16d45ec203
commit 8967c6bab9

View file

@ -46,6 +46,7 @@ class LSformElement_valueWithUnit extends LSformElement {
foreach($this -> params['html_options']['units'] as $sill => $label) {
$units[$sill]=__($label);
}
krsort($units);
return $units;
}
LSerror :: addErrorCode('LSformElement_valueWithUnit_01',$this -> name);