Skip to content
Snippets Groups Projects
Commit a6b3a333 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

resurrect pageURL, fixes #2473

Closes #2473

Merge request studip/studip!1670
parent 243879c3
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ class MultiPersonSearch {
private $description = "";
private $executeURL;
private $jsFunction = null;
private $pageURL = null;
private $quickfilterIds = [];
private $defaultSelectableUsersIDs = [];
private $defaultSelectedUsersIDs = [];
......@@ -405,6 +406,15 @@ class MultiPersonSearch {
return $this->description;
}
/**
* returns the url of the page where the GUI element is added.
*
* @return string
*/
public function getPageUrl() {
return $this->pageURL;
}
/**
* adds a new quickfilter.
*
......@@ -478,6 +488,7 @@ class MultiPersonSearch {
$_SESSION['multipersonsearch'][$this->name]['additionalHMTL'] = $this->additionalHMTL;
$_SESSION['multipersonsearch'][$this->name]['executeURL'] = $this->executeURL;
$_SESSION['multipersonsearch'][$this->name]['jsFunction'] = $this->jsFunction;
$_SESSION['multipersonsearch'][$this->name]['pageURL'] = Request::url();
$_SESSION['multipersonsearch'][$this->name]['defaultSelectableUsersIDs'] = $this->defaultSelectableUsersIDs;
$_SESSION['multipersonsearch'][$this->name]['defaultSelectedUsersIDs'] = $this->defaultSelectedUsersIDs;
$_SESSION['multipersonsearch'][$this->name]['quickfilterIds'] = $this->quickfilterIds;
......@@ -497,6 +508,7 @@ class MultiPersonSearch {
$this->additionalHMTL = $_SESSION['multipersonsearch'][$this->name]['additionalHMTL'] ?? '';
$this->executeURL = html_entity_decode($_SESSION['multipersonsearch'][$this->name]['executeURL'] ?? '');
$this->jsFunction = $_SESSION['multipersonsearch'][$this->name]['jsFunction'] ?? '';
$this->pageURL = $_SESSION['multipersonsearch'][$this->name]['pageURL'] ?? '';
$this->defaultSelectableUsersIDs = $_SESSION['multipersonsearch'][$this->name]['defaultSelectableUsersIDs'] ?? [];
$this->defaultSelectedUsersIDs = $_SESSION['multipersonsearch'][$this->name]['defaultSelectedUsersIDs'] ?? [];
$this->searchObject = unserialize($_SESSION['multipersonsearch'][$this->name]['searchObject'] ?? null);
......
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