Commit 5421ecd1 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5411 Fixed saving of most FAI objects by adding shouldSave method

parent 8785e2e5
......@@ -103,6 +103,12 @@ class faiHook extends faiSimplePluginClass
$this->attributesAccess['hooks']->setLinearRendering(FALSE);
}
protected function shouldSave()
{
/* We need ldap_save to always run */
return TRUE;
}
function ldap_save ()
{
global $config;
......
......@@ -470,6 +470,12 @@ class faiPackage extends faiSimplePluginClass
}
}
protected function shouldSave()
{
/* We need ldap_save to always run */
return TRUE;
}
function ldap_save ()
{
global $config;
......
......@@ -335,6 +335,12 @@ class faiPartitionTable extends faiSimplePluginClass
$this->attributesAccess['cn']->setUnique(TRUE);
}
protected function shouldSave()
{
/* We need ldap_save to always run */
return TRUE;
}
function ldap_save ()
{
global $config;
......
......@@ -102,6 +102,12 @@ class faiScript extends faiSimplePluginClass
$this->attributesAccess['scripts']->setLinearRendering(FALSE);
}
protected function shouldSave()
{
/* We need ldap_save to always run */
return TRUE;
}
function ldap_save ()
{
global $config;
......
......@@ -187,6 +187,12 @@ class faiTemplate extends faiSimplePluginClass
);
}
protected function shouldSave()
{
/* We need ldap_save to always run */
return TRUE;
}
function ldap_save ()
{
global $config;
......
......@@ -95,6 +95,12 @@ class faiVariable extends faiSimplePluginClass
$this->attributesAccess['variables']->setLinearRendering(FALSE);
}
protected function shouldSave()
{
/* We need ldap_save to always run */
return TRUE;
}
function ldap_save ()
{
global $config;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment