mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 03:43:08 +01:00
LSformElement::valueWithUnit : sort units params before using
This commit is contained in:
parent
16d45ec203
commit
8967c6bab9
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ class LSformElement_valueWithUnit extends LSformElement {
|
||||||
foreach($this -> params['html_options']['units'] as $sill => $label) {
|
foreach($this -> params['html_options']['units'] as $sill => $label) {
|
||||||
$units[$sill]=__($label);
|
$units[$sill]=__($label);
|
||||||
}
|
}
|
||||||
|
krsort($units);
|
||||||
return $units;
|
return $units;
|
||||||
}
|
}
|
||||||
LSerror :: addErrorCode('LSformElement_valueWithUnit_01',$this -> name);
|
LSerror :: addErrorCode('LSformElement_valueWithUnit_01',$this -> name);
|
||||||
|
|
Loading…
Reference in a new issue