Skip to content

Commit aa1a7d3

Browse files
committed
Respect the dynamicPtable of tl_content. See #7
1 parent 8f43aca commit aa1a7d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/EventListener/AjaxReloadElementListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public function onParseTemplate($template)
5555
// Determine whether we have a module, a content element or an article by the vars given at this point
5656
$type = ('article' === $template->type)
5757
? self::TYPE_ARTICLE
58-
: (('tl_article' === $template->ptable) ? self::TYPE_CONTENT : self::TYPE_MODULE);
59-
58+
: (\in_array($template->ptable, ['tl_article', 'tl_news', 'tl_calendar_events'], true) ? self::TYPE_CONTENT : self::TYPE_MODULE);
6059

6160
// cssID is parsed in all common templates
6261
// Use cssID for our attribute

0 commit comments

Comments
 (0)