Skip to content

Commit

Permalink
NavigationConfigForm: Set a "name" as default key column for nav configs
Browse files Browse the repository at this point in the history
refs #5600
  • Loading branch information
Johannes Meyer committed Sep 24, 2015
1 parent b7ef951 commit cd1510d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/forms/Navigation/NavigationConfigForm.php
Expand Up @@ -114,6 +114,7 @@ public function getUser()
*/
public function setUserConfig(Config $config)
{
$config->getConfigObject()->setKeyColumn('name');
$this->userConfig = $config;
return $this;
}
Expand All @@ -126,7 +127,7 @@ public function setUserConfig(Config $config)
public function getUserConfig()
{
if ($this->userConfig === null) {
$this->userConfig = $this->getUser()->loadNavigationConfig();
$this->setUserConfig($this->getUser()->loadNavigationConfig());
}

return $this->userConfig;
Expand All @@ -141,6 +142,7 @@ public function getUserConfig()
*/
public function setShareConfig(Config $config)
{
$config->getConfigObject()->setKeyColumn('name');
$this->shareConfig = $config;
return $this;
}
Expand Down

0 comments on commit cd1510d

Please sign in to comment.