Default actions for related records is view in 1.2.1

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

Default actions for related records is view in 1.2.1

Postby Martin Dowse » Tue Oct 06, 2009 12:14 am

Hi

in my conf.ini I have set default_browse_action=edit. Under version 1.1.5 this also worked for related records i.e. the generated url for related records contained action=browse so edit mode was the default.

Version 1.2.1 seems to ignore that setting so that url always contains action=view. Is there setting or other way of making the default action browse for related records under 1.2.1?

Thanks
Martin Dowse
 
Posts: 12
Joined: Mon Aug 04, 2008 4:42 pm

Postby shannah » Wed Oct 07, 2009 11:16 am

Sorry. Thanks for pointing this out. I have fixed this in SVN.

In Dataface/RelatedList.php, find the line
Code: Select all
$link = $srcRecord->getURL('-action=view');


Change it to

Code: Select all
$link = $srcRecord->getURL('-action=browse');
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Thanks!

Postby Martin Dowse » Wed Oct 07, 2009 7:11 pm

Much appreciated.

cheers.
Martin Dowse
 
Posts: 12
Joined: Mon Aug 04, 2008 4:42 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 25 guests

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