use number wiget for weight fields in all forms
[civicrm-core.git] / CRM / Campaign / Form / Survey / Results.php
index ffe95eb00d1bd0a678ccbe98287ff77f30be7acb..4dd86299f718666e30ae84a7f7d07ae95f63cc0c 100644 (file)
@@ -165,7 +165,7 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
       );
 
       // weight
-      $this->add('text', "option_weight[$i]", ts('Order'),
+      $this->add('number', "option_weight[$i]", ts('Order'),
         $optionAttributes['weight']
       );