use number wiget for weight fields in all forms
[civicrm-core.git] / CRM / Price / Form / Option.php
index da4f2a3de602d1a4fbe318f91c383c9cb89178f2..7970ac0e9e9741f83e5d82f3a36e398c50ba9a9c 100644 (file)
@@ -232,7 +232,7 @@ class CRM_Price_Form_Option extends CRM_Core_Form {
       $this->add('textarea', 'help_post', ts('Post Option Help'));
 
       // weight
-      $this->add('text', 'weight', ts('Order'), NULL, TRUE);
+      $this->add('number', 'weight', ts('Order'), NULL, TRUE);
       $this->addRule('weight', ts('is a numeric field'), 'numeric');
 
       // is active ?