aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2025-11-25 11:58:42 +0100
committerThomas Hackl <hackl@data-quest.de>2025-11-25 11:58:42 +0100
commitf5539ca0dace099b495b0b03fb50de16a0a73930 (patch)
tree95225ca6f748d905642f37ea0a373ec27805df54 /app/controllers/admin
parent04db48dbe7a41068ec004d39be480d9b1c61b120 (diff)
Resolve "Root Assistent: Optionen direkt bearbeiten können"
Closes #5777 Merge request studip/studip!4577
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/configuration.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/controllers/admin/configuration.php b/app/controllers/admin/configuration.php
index 1538334..9673cf2 100644
--- a/app/controllers/admin/configuration.php
+++ b/app/controllers/admin/configuration.php
@@ -101,7 +101,16 @@ class Admin_ConfigurationController extends AuthenticatedController
htmlReady($field)
));
- $this->relocate($this->action_url("configuration#field-{$field}", ['open_section' => $section]));
+ if (Request::bool('from_root_assi')) {
+ $this->redirect(
+ URLHelper::getURL(
+ 'dispatch.php/root_assistant',
+ ['contentbox_open' => 'new-configurations']
+ )
+ );
+ } else {
+ $this->relocate($this->action_url("configuration#field-{$field}", ['open_section' => $section]));
+ }
return;
}
}
@@ -110,6 +119,8 @@ class Admin_ConfigurationController extends AuthenticatedController
$this->config = ConfigurationModel::getConfigInfo($field);
$this->allconfigs = ConfigurationModel::getConfig();
+ $this->from_root_assi = Request::bool('from_root_assi');
+
PageLayout::setTitle(sprintf(_('Konfigurationsparameter: %s editieren'), $this->config['field']));
}