RE:Problem with DBDOFB and fb_crossLinks

From: Date: Tue, 21 Mar 2006 11:09:57 +0000
Subject: RE:Problem with DBDOFB and fb_crossLinks
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23363@lists.php.net to get a copy of this message
>> One thing I discovered, trying to debug what is happening it´s that in the >> line number 2763 in the file FormBuilder.php, sanitizeFieldName returns the >> value '__crossLink_Collection_permission_collection_id_permission_id' and >> the field in $editableFields is >> "__crossLink_Collection2permission_collection_id_permission_id", the >> difference it´s a 2 in the middle of the word. So, the conditional if >> (in_array($crossLinkName, $editableFields)) it´s going to be always false. >> >> What I commented this line, trying to see if the problem was that I cannot >> name a table using a number, but it´s still not working. >> >> Can anyone help me, please? I don´t know what else to do. >> >> Thank you in advance. >> >Try using __crossLink_Collection_permission_collection_id_permission_id >in userEditableFields. Or use $fb->_sanitizeFieldNames() on your vcrossLink name. >-- >Justin Patrin Well, I´m not defining the userEditableFields, it´s automatically created, but when I do in this way: var $fb_userEditableFields = array('collection_id','name','__crossLink_Collection_permission_collection_i d_permission_id'); as you said, I´m including a function to see the content of the array before the line I mentioned before, and the result is: * 0 => collection_id * 1 => name so it´s still not working. Without defining it, the result is: * 0 => collection_id * 1 => name * 2 => __crossLink_Collection2permission_collection_id_permission_id With respect to using $fb->_sanitizeFieldNames() on the vcrossLink name, I don´t know where and how to implement it. Jose Manuel Zea ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com

« previous php.pear.general (#23363) next »