diff --git a/application/forms/Navigation/NavigationConfigForm.php b/application/forms/Navigation/NavigationConfigForm.php index dc5c3509e..025e59fe3 100644 --- a/application/forms/Navigation/NavigationConfigForm.php +++ b/application/forms/Navigation/NavigationConfigForm.php @@ -322,7 +322,10 @@ class NavigationConfigForm extends ConfigForm $itemConfig = $config->getSection($name); if ($this->hasBeenShared($name)) { - if ((! isset($data['users']) || !$data['users']) && (! isset($data['groups']) || !$data['groups'])) { + if (isset($data['parent']) && $data['parent'] + ? !$this->hasBeenShared($data['parent']) + : ((! isset($data['users']) || !$data['users']) && (! isset($data['groups']) || !$data['groups'])) + ) { // It is shared but shouldn't anymore $config = $this->unshare($name)->config; // unshare() calls setIniConfig() }