Default actions for related records is view in 1.2.1
Archived from the Xataface Users forum.
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
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');
Martin Dowse — Wed Oct 07, 2009 7:11 pm
Much appreciated.
cheers.