Skip to content
Snippets Groups Projects
Commit 95c38e37 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by David Siegfried
Browse files

don't render link text in action-menu-single mode, fixes #1404

Closes #1404

Merge request studip/studip!869
parent 8dfbd0f4
No related branches found
No related tags found
No related merge requests found
......@@ -126,12 +126,14 @@ class MultiPersonSearch {
/**
* renders a link to open the multipersonsearch dialog.
*
* @param string $with_link_text include link text in output
*/
public function render() {
public function render($with_link_text = true) {
$template = $GLOBALS['template_factory']->open('multipersonsearch/link.php');
$template->set_attribute('linkIconPath', $this->linkIconPath);
$template->set_attribute('linkText', $this->linkText);
$template->set_attribute('linkText', $with_link_text ? $this->linkText : '');
$template->set_attribute('title', $this->title);
$template->set_attribute('name', $this->name);
$template->set_attribute('description', $this->description);
......
......@@ -16,6 +16,6 @@
</button>
<? endif ?>
<? elseif ($action['type'] === 'multi-person-search'): ?>
<?= $action['object']->render() ?>
<?= $action['object']->render(false) ?>
<? endif ?>
<? endforeach ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment