Re: RE:Problem with DBDOFB and fb_crossLinks
| From: | Justin Patrin | Date: | Tue, 21 Mar 2006 16:47:25 +0000 |
| Subject: | Re: RE:Problem with DBDOFB and fb_crossLinks | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23371@lists.php.net to get a copy of this message | ||
On 3/21/06, Jose Manuel Zea <jmzeag@yahoo.es> wrote:
>
>
> >> 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:
Oh, I see, I thought you were defining it.
>
> 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
>
Strange, althoug with the below I'm not surprised.
> so it´s still not working.
>
> Without defining it, the result is:
>
> * 0 => collection_id
> * 1 => name
> * 2 => __crossLink_Collection2permission_collection_id_permission_id
>
Ah, I see. I think I know where the problem is now.
> With respect to using $fb->_sanitizeFieldNames() on the vcrossLink name, I
> don´t know where and how to implement it.
>
I meant when setting editableFields, but since you're not setting it yourself...
Ok, I think that I've fixed this in CVS now. Could you try out the CVS
version and see if it fixes your problem?
--
Justin Patrin