aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/MultiPersonSearch.class.php
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-08-08 07:14:02 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-08-08 07:14:02 +0000
commit95c38e37ff3123469c13ba83a476569896586737 (patch)
treee7081e2b0fa22dc02d51fb4e735ce2709ec63002 /lib/classes/MultiPersonSearch.class.php
parent8dfbd0f4550cc37a89d7f9b2fefecc867b63756d (diff)
don't render link text in action-menu-single mode, fixes #1404
Closes #1404 Merge request studip/studip!869
Diffstat (limited to 'lib/classes/MultiPersonSearch.class.php')
-rw-r--r--lib/classes/MultiPersonSearch.class.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/classes/MultiPersonSearch.class.php b/lib/classes/MultiPersonSearch.class.php
index a5b2c1e..972b7ab 100644
--- a/lib/classes/MultiPersonSearch.class.php
+++ b/lib/classes/MultiPersonSearch.class.php
@@ -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);