use number wiget for weight fields in all forms
[civicrm-core.git] / CRM / UF / Form / Field.php
index 0036a9bd7cf4030ffd9b67df9f6e328bc041c04e..5b0c433a781ccc1bab69f472baba9d2c76a22b3d 100644 (file)
@@ -439,7 +439,7 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
     $attributes = CRM_Core_DAO::getAttribute('CRM_Core_DAO_UFField');
 
     // weight
-    $this->add('text', 'weight', ts('Order'), $attributes['weight'], TRUE);
+    $this->add('number', 'weight', ts('Order'), $attributes['weight'], TRUE);
     $this->addRule('weight', ts('is a numeric field'), 'numeric');
 
     $this->add('textarea', 'help_pre', ts('Field Pre Help'), $attributes['help_pre']);