[Vtigercrm-commits] [vtiger development] #6230: readonly uitype 8 inconsistent

vtiger development vtiger-tickets at trac.vtiger.com
Fri Aug 7 13:48:57 EDT 2009


#6230: readonly uitype 8 inconsistent
------------------------+---------------------------------------------------
 Reporter:  R.Cohen     |       Owner:  developer
     Type:  defect      |      Status:  new      
 Priority:  unassigned  |   Milestone:  5.1.1    
Component:  vtigercrm   |     Version:  5.1.0    
 Keywords:              |  
------------------------+---------------------------------------------------
 [[BR]]
 UItype 8 is documented as 'Non editable text box'. I have two
 issues:[[BR]]

 1. In edit templates it does not appear at all. I would have like to see
 it as static text.[[BR]]

 2. If via eventhandler or code I do put values in those fields they get
 encoded into arrays separated by commas. See CRMEntity near line 557:

 {{{
 elseif($uitype == 8) {
         $this->column_fields[$fieldname] =
 rtrim($this->column_fields[$fieldname],',');
         $ids = explode(',',$this->column_fields[$fieldname]);
         $json = new Zend_Json();
         $fldvalue = $json->encode($ids);

 }}}
 I do not understand why this function is there at all and I think it
 seriously gets in the way of using uitype 8 for anything.
 Please help me understand what uitype 8 is good for and how do I get a
 field that can be modified by code but not by user entry.

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6230>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list