mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
NavigationConfigForm: Set a "name" as default key column for nav configs
refs #5600
This commit is contained in:
parent
b7ef951e57
commit
cd1510d846
@ -114,6 +114,7 @@ class NavigationConfigForm extends ConfigForm
|
|||||||
*/
|
*/
|
||||||
public function setUserConfig(Config $config)
|
public function setUserConfig(Config $config)
|
||||||
{
|
{
|
||||||
|
$config->getConfigObject()->setKeyColumn('name');
|
||||||
$this->userConfig = $config;
|
$this->userConfig = $config;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
@ -126,7 +127,7 @@ class NavigationConfigForm extends ConfigForm
|
|||||||
public function getUserConfig()
|
public function getUserConfig()
|
||||||
{
|
{
|
||||||
if ($this->userConfig === null) {
|
if ($this->userConfig === null) {
|
||||||
$this->userConfig = $this->getUser()->loadNavigationConfig();
|
$this->setUserConfig($this->getUser()->loadNavigationConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->userConfig;
|
return $this->userConfig;
|
||||||
@ -141,6 +142,7 @@ class NavigationConfigForm extends ConfigForm
|
|||||||
*/
|
*/
|
||||||
public function setShareConfig(Config $config)
|
public function setShareConfig(Config $config)
|
||||||
{
|
{
|
||||||
|
$config->getConfigObject()->setKeyColumn('name');
|
||||||
$this->shareConfig = $config;
|
$this->shareConfig = $config;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user