RE: [PEAR-DEV] DB_DataObject_Formbuilder: preventing crossLinks from being deleted
| From: | Sönke Ruempler | Date: | Mon, 17 Jan 2005 18:19:02 +0000 |
| Subject: | RE: [PEAR-DEV] DB_DataObject_Formbuilder: preventing crossLinks from being deleted | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-35542@lists.php.net to get a copy of this message | ||
Justin Patrin wrote on Monday, January 17, 2005 7:13 PM:
>>> Good point. I've added prepareLinkedDataObject support for
>>> crossLinks and tripleLinks to FormBuilder in CVS. *This is not
>>> tested*. If you could please test and let me know how it works for
>>> you I'd appreciate it. See this URL for how this callback is used
>>>
>
> http://opensource.21st.de/tiki-index.php?page=Callback+methods#id2760
>>
>> Thank you, Justin.
>>
>> The $key is undefined.
>
> What are you referring to here?
Sorry for the inaccuracy ;-) - after submitting the form:
Notice: Undefined variable: key in
/usr/lib/php/DB/DataObject/FormBuilder.php on line 2226
Warning: Cannot modify header information - headers already sent by (output
started at /usr/lib/php/DB/DataObject/FormBuilder.php:2226) in
/daten/web/stadeum.de/www/flyer/index.php on line 96
> I'd rather not do this as this really isn't how crosslinks works. If
> we make it part of crossLinks to make the field NULL instead of
> deleting the record I could see this. We'd need a good reason for
> this, though.
It works for me with the callback, so it's ok.