Fix for #1018 "'Export To CSV' for Reports not working"

The call to LeftAndMain::Link() was appending the Action as opposed to passing it as a parameter
This resulted in the double forward slash (/),

There is still possibly an unresolved issue with LeftAndMain::Link() about appending the slash at the end??
This commit is contained in:
Lee Bradley 2014-05-18 21:38:14 +01:00 committed by Damian Mooyman
parent 681645ac0f
commit 7c9c8e11b4
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class ReportAdmin extends LeftAndMain {
unset($filteredCriteria[$notAParam]);
}
$formLink = $this->Link() . '/EditForm';
$formLink = $this->Link( 'EditForm' );
if($filteredCriteria) $formLink .= '?' . http_build_query($filteredCriteria);
$form->setFormAction($formLink);
$form->setTemplate('ReportAdminForm');