Skip to content

Commit

Permalink
Add BC layer for jexl condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Prokyonn committed Jan 16, 2024
1 parent fa9b82f commit 94b238a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Admin/ArticleAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function(Localization $localization) {
];
}

$previewCondition = '__routeAttributes.locale in availableLocales';
$previewCondition = '(__routeAttributes.locale in availableLocales) or !__routeAttributes';
$viewCollection->add(
$this->viewBuilderFactory->createListViewBuilder(static::LIST_VIEW . '_' . $typeKey, '/:locale/' . $typeKey)
->setResourceKey(ArticleDocument::RESOURCE_KEY)
Expand Down

0 comments on commit 94b238a

Please sign in to comment.