From aa3bff532e218a07b0fa2b415e745c7b4a1b015c Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 1 Oct 2015 10:57:00 +0200 Subject: [PATCH] NavigationConfigForm: Make sure to return the correct configuration --- application/forms/Navigation/NavigationConfigForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/forms/Navigation/NavigationConfigForm.php b/application/forms/Navigation/NavigationConfigForm.php index 94ff860ae..ccb5d628b 100644 --- a/application/forms/Navigation/NavigationConfigForm.php +++ b/application/forms/Navigation/NavigationConfigForm.php @@ -129,7 +129,7 @@ class NavigationConfigForm extends ConfigForm */ public function getUserConfig($type = null) { - if ($this->userConfig === null) { + if ($this->userConfig === null || $type !== null) { if ($type === null) { throw new ProgrammingError('You need to pass a type if no user configuration is set'); }