Page 1 of 1

Default actions for related records is view in 1.2.1

PostPosted: Tue Oct 06, 2009 12:14 am
by Martin Dowse
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

PostPosted: Wed Oct 07, 2009 11:16 am
by shannah
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');

Thanks!

PostPosted: Wed Oct 07, 2009 7:11 pm
by Martin Dowse
Much appreciated.

cheers.