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', []); }