diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2023-12-18 14:02:19 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2023-12-18 14:02:19 +0000 |
| commit | c8ffb844df4622c9c1f7e52321601cdcffd81d63 (patch) | |
| tree | 194f7f24859e3ed9d8a062d4c6a676c7e15614cb /app/controllers/news.php | |
| parent | 8a4fc458c915d37b224a582631723c91e17b8bc1 (diff) | |
regard "username" URL parameter when closing the dialog for creating an announcement, fixes #3559
Closes #3559
Merge request studip/studip!2470
Diffstat (limited to 'app/controllers/news.php')
| -rw-r--r-- | app/controllers/news.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/news.php b/app/controllers/news.php index e87eeae..33c084c 100644 --- a/app/controllers/news.php +++ b/app/controllers/news.php @@ -310,6 +310,10 @@ class NewsController extends StudipController $news['news_ranges'][] = $range; } + $url_params = []; + if (Request::submitted('username')) { + $url_params['username'] = Request::username('username'); + } $this->form = \Studip\Forms\Form::fromSORM( $news, @@ -368,7 +372,7 @@ class NewsController extends StudipController ] ] ], - URLHelper::getURL('?') + URLHelper::getURL('?', $url_params) )->addSORM( $news, [ |
