Commit 84c9b882 authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Merge branch '2912-the-autofs-plugin-should-be-updated-to-support-autofs5' of...

Merge branch '2912-the-autofs-plugin-should-be-updated-to-support-autofs5' of gitlab.fusiondirectory.org:fusiondirectory/fd-plugins into 2912-the-autofs-plugin-should-be-updated-to-support-autofs5
parents 70450b33 b466e919
...@@ -54,6 +54,7 @@ class automountMap extends simplePlugin ...@@ -54,6 +54,7 @@ class automountMap extends simplePlugin
], ],
'entries' => [ 'entries' => [
'name' => _('Entries'), 'name' => _('Entries'),
'class' => ['fullwidth'],
'attrs' => [ 'attrs' => [
new SubNodesAttribute( new SubNodesAttribute(
_('Entries'), _('Entries in the automount table'), _('Entries'), _('Entries in the automount table'),
...@@ -79,4 +80,29 @@ class automountMap extends simplePlugin ...@@ -79,4 +80,29 @@ class automountMap extends simplePlugin
] ]
]; ];
} }
public function __construct ($dn = NULL, $object = NULL, $parent = NULL, $mainTab = FALSE)
{
parent::__construct($dn, $object, $parent, $mainTab);
$this->attributesAccess['automountEntries']->setLinearRendering(FALSE);
}
protected function shouldSave (): bool
{
return (parent::shouldSave() || $this->attributesAccess['automountEntries']->hasChanged());
}
protected function ldap_save (): array
{
global $config;
$errors = parent::ldap_save();
$ldap = $config->get_ldap_link();
$this->attributesAccess['automountEntries']->postLdapSave($ldap);
return $errors;
}
} }
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