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

Merge branch '6039-update-the-system-plugin' into '1.4-dev'

Resolve "update the system plugin"

See merge request fusiondirectory/fd-plugins!752
parents 617d66c2 77d0ef6b
......@@ -52,7 +52,7 @@ class ArgonautServiceNameAttribute extends CompositeAttribute
parent::__construct($description, $ldapName, [], "", "", $acl);
}
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
parent::setParent($plugin);
$this->loadServiceNames();
......
......@@ -55,7 +55,7 @@ class ArgonautSlaveZonesAttribute extends OrderedArrayAttribute
);
}
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
parent::setParent($plugin);
/* If there are DNS zones from DNS plugin, replace DNS zone field with a SelectAttribute */
......
......@@ -26,7 +26,7 @@ class DebconfEntriesAttribute extends CompositeAttribute
$this->setInLdap(FALSE);
}
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
parent::setParent($plugin);
if (is_object($this->plugin)) {
......
......@@ -240,7 +240,7 @@ class DhcpSectionsAttribute extends DialogOrderedArrayAttribute
unset ($attrs[$this->getLdapName()]);
}
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
parent::setParent($plugin);
if (is_object($this->plugin)) {
......
......@@ -68,7 +68,7 @@ class DhcpHostsAttribute extends OrderedArrayAttribute
return array_slice($value, 0, 3);
}
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
parent::setParent($plugin);
if (is_object($this->plugin)) {
......
......@@ -33,7 +33,7 @@ class DnsRecordsFilteredAttribute extends DnsRecordsAttribute
{
}
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
parent::setParent($plugin);
if (is_object($this->plugin)) {
......
......@@ -39,7 +39,7 @@ class FAIreleaseAttribute extends SelectAttribute
}
}
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
parent::setParent($plugin);
$this->setChoices(array_keys($this->plugin->cache['SERVERS'] ?? []));
......
......@@ -85,7 +85,7 @@ class FAIRepositoryAttribute extends PipeSeparatedCompositeAttribute
$this->attributes[7]->setSubmitForm(TRUE);
}
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
$this->updateFields();
parent::setParent($plugin);
......
......@@ -21,7 +21,7 @@
class OPSIServerAttribute extends SelectAttribute
{
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
parent::setParent($plugin);
if (is_object($this->plugin)) {
......
......@@ -44,7 +44,7 @@ class MungedAttribute extends Attribute
}
}
function setParent (simplePlugin &$plugin)
function setParent (&$plugin)
{
$this->plugin = $plugin;
if (is_object($this->plugin)) {
......
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