Skip to content

Commit

Permalink
fix: dropdown rending in event tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Oct 4, 2023
1 parent 078e8ce commit ea3ccb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Event/class.xoctEventTileGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ public function getHTML()
// The object settings will be checked based from within the insertDownloadLink method!
$event_renderer->insertDownloadLink($buttons_tpl, 'link', 'LINK', 'btn-default');

if (!$this->objectSettings->getUseAnnotations()) {
if ($this->objectSettings->getUseAnnotations()) {
$event_renderer->insertAnnotationLink($buttons_tpl, 'link', 'LINK', 'btn-default');
}

// In order to render dropdowns, we have to call its method here (at the end),
// because the dropdown list gets its value during the call of download and annotate insertion.
$renderer->renderDropdowns($this->tpl);
$event_renderer->renderDropdowns($buttons_tpl);

$tile_tpl->setVariable('EVENT_BUTTONS', $buttons_tpl->get());

Expand Down

0 comments on commit ea3ccb8

Please sign in to comment.