[Vtigercrm-commits] [vtiger development] #6363: Custom Field of Number Type: Allow negative values

vtiger development vtiger-tickets at trac.vtiger.com
Thu Oct 15 06:28:34 EDT 2009


#6363: Custom Field of Number Type: Allow negative values
------------------------+---------------------------------------------------
  Reporter:  prasad     |       Owner:  developer
      Type:  defect     |      Status:  new      
  Priority:  major      |   Milestone:  5.2.0    
 Component:  vtigercrm  |     Version:  5.1.0    
Resolution:             |    Keywords:           
------------------------+---------------------------------------------------
Comment (by prasad):

 The typeofdata used for custom field number type is 'N~O...' and form
 validation restricts you to enter negative numbers. Using 'NN~O...' will
 let you enter negative values.

 To address this problem when you add new custom field, code-change is
 suggested below:

 File: modules/Settings/LayoutBlockList.php

 {{{
 function addCustomField() {
 //...
     elseif($fldType == 'Number') {
     // ...
     $uichekdata = 'NN~O~'.$fldlength.','.$decimal; // Instead of 'N~O~'..
     }
 }
 }}}

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6363#comment:1>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list