Skip to content

Commit

Permalink
Do not use custom Template in the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed Jun 2, 2023
1 parent 802f2ff commit 6e62421
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ Changelog
[Unreleased]
------------

[3.8.3] (2023-06-02)
--------------------

### Fixed

- Do not use customTpl in the backend of the fragment controller

[3.8.0]
-------

### Added

- Asset manager: Add support for asset packages based assets
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/AbstractFragmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ protected function renderResponse(string $templateName, array $data): Response
*/
protected function getTemplateName(Model $model): string
{
if ($model->customTpl) {
if ($model->customTpl && ! $this->scopeMatcher->isBackendRequest()) {
return $model->customTpl;
}

Expand Down

0 comments on commit 6e62421

Please sign in to comment.