Skip to content

Commit 04aea96

Browse files
committed
Fix PageController variant template: add missing winnerCriteria and configurationError keys
The shared Variant/row.html.twig template expects winnerCriteria and configurationError keys in the variants array. The EmailController passes these via AbTestSettingsService, but PageController was missing them, causing a 500 error on page detail view when variants exist.
1 parent 30a28ce commit 04aea96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/bundles/PageBundle/Controller/PageController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ public function viewAction(Request $request, PageConfig $pageConfig, PageModel $
300300
'children' => $children,
301301
'properties' => $properties,
302302
'criteria' => $criteria['criteria'],
303+
'winnerCriteria' => $lastCriteria ?? '',
304+
'configurationError' => $variantError,
303305
];
304306

305307
$translations = [

0 commit comments

Comments
 (0)