Skip to content

Commit

Permalink
Merge pull request #8856 from kuzmany/3-0-0-AB-test-fix
Browse files Browse the repository at this point in the history
Fix A/B test winner 500 error
  • Loading branch information
dennisameling committed Jun 11, 2020
2 parents 7fc29a2 + 95deda0 commit d29a619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/bundles/CoreBundle/Translations/en_US/messages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mautic.config.tab.coreconfig="System Settings"
mautic.config.tab.frequency_rules="Default Frequency Rule"
mautic.core.ab_test.confirm_make_winner="Warning: making %name% the winner will set it as the main item/parent, unpublish the other variants, stop the A/B test, and reset current A/B test stats. Are you sure you want to do this?"
mautic.core.ab_test.create="Create an A/B test"
mautic.core.ab_test.makewinner="Make winner"
mautic.core.ab_test.make_winner="Make winner"
mautic.core.ab_test.noresults="No results available at this time."
mautic.core.ab_test.parent_winning="Parent winning or tied with a variant"
mautic.core.ab_test.stats="A/B Test Stats"
Expand Down
2 changes: 1 addition & 1 deletion app/bundles/EmailBundle/Controller/EmailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ public function winnerAction($objectId)
'objectId' => $objectId,
];
$postActionVars['returnUrl'] = $this->generateUrl('mautic_page_action', $postActionVars['viewParameters']);
$postActionVars['contentTemplate'] = 'MauticEmailBundle:Page:view';
$postActionVars['contentTemplate'] = 'MauticEmailBundle:Email:view';
} //else don't do anything

return $this->postActionRedirect(
Expand Down

0 comments on commit d29a619

Please sign in to comment.