From d1adef727da73124cf9b663db202c81ffb43f078 Mon Sep 17 00:00:00 2001 From: Tom Wezepoel Date: Tue, 2 Jun 2026 20:39:49 +0200 Subject: [PATCH] Get GSS Mockup Server from database --- lib/Service/ConfigService.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index 9e3322ac9..4078290a4 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -424,9 +424,21 @@ public function getGSLookup(): string { /** - * @return array - */ + * Returns the list of GSS mockup instances. + * @return array + */ public function getGSSMockup(): array { + // Try reading from the database (app config) + $dbValue = $this->config->getAppValue(Application::APP_ID, 'gss.mockup', ''); + + if ($dbValue !== '') { + $decoded = json_decode($dbValue, true); + if (is_array($decoded)) { + return $decoded; + } + } + + // Fall back to system config (config.php) for backward compatibility return $this->config->getSystemValue('gss.mockup', []); }