Commit 99247790 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '6075-add-an-archival-plugin-to-fusiondirectory' into '1.4-dev'

Resolve "Add an archival plugin to fusiondirectory"

See merge request fusiondirectory/fd-plugins!783
parents accbd7a4 f1a54e75
......@@ -39,6 +39,7 @@ class archiveConfig extends simplePlugin
return [
'main' => [
'name' => _('Archive'),
'class' => ['fullwidth'],
'attrs' => [
new StringAttribute(
_('Archive RDN'), _('Branch in which archived objects will be stored'),
......@@ -84,6 +85,12 @@ class archiveConfig extends simplePlugin
$choices = static::getManagedTypes();
$this->attributesAccess['fdArchivedTypesAndFields']->attribute->attributes[0]->setChoices(array_keys($choices), array_values($choices));
$this->attributesAccess['fdArchivedTypesAndFields']->setLinearRendering(FALSE);
$this->attributesAccess['fdArchivedTypesAndFields']->setHeaders([
_('Type'),
_('Fields'),
_('Unique Fields'),
'',
]);
}
public static function getManagedTypes (): array
......
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