From 8967c6bab94e204196f0efa4cb1f10892a3a8431 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 11 May 2013 19:23:40 +0200 Subject: [PATCH] LSformElement::valueWithUnit : sort units params before using --- public_html/includes/class/class.LSformElement_valueWithUnit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public_html/includes/class/class.LSformElement_valueWithUnit.php b/public_html/includes/class/class.LSformElement_valueWithUnit.php index 50ef1b17..71bba0ca 100644 --- 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); } + krsort($units); return $units; } LSerror :: addErrorCode('LSformElement_valueWithUnit_01',$this -> name);