projects
/
ldapsaisie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LSformElement::valueWithUnit : sort units params before using
[ldapsaisie.git]
/
public_html
/
includes
/
class
/
class.LSformElement_valueWithUnit.php
diff --git
a/public_html/includes/class/class.LSformElement_valueWithUnit.php
b/public_html/includes/class/class.LSformElement_valueWithUnit.php
index
50ef1b1
..
71bba0c
100644
(file)
--- a/
public_html/includes/class/class.LSformElement_valueWithUnit.php
+++ b/
public_html/includes/class/class.LSformElement_valueWithUnit.php
@@
-46,6
+46,7
@@
class LSformElement_valueWithUnit extends LSformElement {
foreach($this -> params['html_options']['units'] as $sill => $label) {
$units[$sill]=__($label);
}
foreach($this -> params['html_options']['units'] as $sill => $label) {
$units[$sill]=__($label);
}
+ krsort($units);
return $units;
}
LSerror :: addErrorCode('LSformElement_valueWithUnit_01',$this -> name);
return $units;
}
LSerror :: addErrorCode('LSformElement_valueWithUnit_01',$this -> name);