Add existing x record in relationship broken?

A place for users and developers of the Xataface to discuss and receive support.

Add existing x record in relationship broken?

Postby discostrings » Tue Jul 10, 2012 12:01 pm

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!
discostrings
 
Posts: 3
Joined: Tue Jan 17, 2012 1:35 pm

Re: Add existing x record in relationship broken?

Postby shannah » Thu Jul 12, 2012 11:24 am

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Add existing x record in relationship broken?

Postby shannah » Mon Jul 30, 2012 12:47 pm

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 19 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved