Page 1 of 1

Add existing x record in relationship broken?

PostPosted: Tue Jul 10, 2012 12:01 pm
by discostrings
I've been trying to use the "Add existing record" functionality in a many-to-many relationship, and I think I've found a bug. It occurs in my own applications, but also in examples 2 and 3 at http://xataface.com/documentation/tutor ... ationships using all the sample data.

The "Add Existing Courses Record" function works and creates the record in the ProgramCourses table, but the page it redirects the user to afterward reads
Code: Select all
Fatal error: [pear_error: message="No relationship specified." code=0 mode=return level=notice prefix="" info=""] in <path>/xataface/Dataface/Application.php on line 1722


It looks like the page the user is redirected to after the creation is missing the -relationship=Courses parameter. If I live-edit the page and add "&-relationship=Courses" to the hidden input named "--redirect", everything works as expected.

This occurs in both the current release and the latest 1.3.x in svn.

Can you confirm I'm not doing anything wrong? Is there an easy workaround?

Thanks!

Re: Add existing x record in relationship broken?

PostPosted: Thu Jul 12, 2012 11:24 am
by shannah
Thanks. Sounds like a bug. I've added it to the issue tracker, and targeted for the 1.3.3 release.
http://bugs.weblite.ca/view.php?id=1115

Re: Add existing x record in relationship broken?

PostPosted: Mon Jul 30, 2012 12:47 pm
by shannah
I have closed this bug as I haven't been able to reproduce it. I set up the tables from the Faculty of Widgetry example that you referred to with the many-to-many relationship but could not reproduce the problem. Adding an existing record correctly redirected back to the courses tab of related courses for the correct program.