Re: DB_DataObject_Formbuilder: preventing crossLinks from being deleted
| From: | Justin Patrin | Date: | Mon, 17 Jan 2005 18:46:48 +0000 |
| Subject: | Re: DB_DataObject_Formbuilder: preventing crossLinks from being deleted | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-35544@lists.php.net to get a copy of this message | ||
On Mon, 17 Jan 2005 19:19:02 +0100, Sönke Ruempler
<ruempler@topconcepts.com> wrote:
> 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
*whoops*. I copied some code but forgot to update the vars. This
should be fixed in CVS.
>
> > 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.
>
:-)
--
Justin Patrin