NavigationConfigForm: Set a "name" as default key column for nav configs

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-24 15:49:04 +02:00
parent b7ef951e57
commit cd1510d846
1 changed files with 3 additions and 1 deletions

View File

@ -114,6 +114,7 @@ class NavigationConfigForm extends ConfigForm
*/
public function setUserConfig(Config $config)
{
$config->getConfigObject()->setKeyColumn('name');
$this->userConfig = $config;
return $this;
}
@ -126,7 +127,7 @@ class NavigationConfigForm extends ConfigForm
public function getUserConfig()
{
if ($this->userConfig === null) {
$this->userConfig = $this->getUser()->loadNavigationConfig();
$this->setUserConfig($this->getUser()->loadNavigationConfig());
}
return $this->userConfig;
@ -141,6 +142,7 @@ class NavigationConfigForm extends ConfigForm
*/
public function setShareConfig(Config $config)
{
$config->getConfigObject()->setKeyColumn('name');
$this->shareConfig = $config;
return $this;
}