[Vtigercrm-commits] [vtiger development] #6169: listview fails on UIType 8
vtiger development
vtiger-tickets at trac.vtiger.com
Thu Jul 16 13:30:49 EDT 2009
#6169: listview fails on UIType 8
------------------------+---------------------------------------------------
Reporter: klaus | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: 5.1.0
Component: vtigercrm | Version: 5.1.0-rc
Keywords: UIType |
------------------------+---------------------------------------------------
discovered for custom module, also appears on standard module.[[BR]]
UIType 8 : readonly[[BR]]
you can create error in the following way: enter account with bill
city.[[BR]]
change UIType of bill city to 8 in db.
The following error occurs in listview of accounts if data in field:
Fatal error: Uncaught exception 'Zend_Json_Exception' with message
'Illegal Token' in
C:\xampp\htdocs\vtiger51rc\include\Zend\Json\Decoder.php:451 Stack trace:
#0 C:\xampp\htdocs\vtiger51rc\include\Zend\Json\Decoder.php(118):
Zend_Json_Decoder->_getNextToken() #1
C:\xampp\htdocs\vtiger51rc\include\Zend\Json\Decoder.php(157):
Zend_Json_Decoder->__construct('kkkk', 1) #2
C:\xampp\htdocs\vtiger51rc\include\Zend\Json.php(63):
Zend_Json_Decoder::decode('kkkk', 1) #3
C:\xampp\htdocs\vtiger51rc\include\utils\ListViewUtils.php(1881):
Zend_Json::decode('kkkk') #4
C:\xampp\htdocs\vtiger51rc\include\utils\ListViewUtils.php(1016):
getValue(Array, Object(ADORecordSet_mysql), 'bill_city', Object(Accounts),
'Accounts', '2', 0, 'list', '', '', '4') #5
C:\xampp\htdocs\vtiger51rc\modules\Accounts\ListView.php(311):
getListViewEntries(Object(Accounts), 'Accounts',
Object(ADORecordSet_mysql), Array, '', '', 'EditView', 'Delete',
Object(CustomView)) #6 C:\xampp\htdocs\vtiger51rc\index.php(693):
include('C:\xampp\htdocs...') #7 {main} thrown in
C:\xampp\htdocs\vtiger51rc\include\Zend\Json\Decoder.php on line 451
[[BR]]
[[BR]]
if no data in field, page displays field name.
As result, no readonly fields can be displayed in listviews.
Same in 5.0.4 does not throw error.
Klaus
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6169>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list