diff --git a/include/management/snapshot/class_SnapshotCreateDialog.inc b/include/management/snapshot/class_SnapshotCreateDialog.inc index 89aebcf3c702e8c2b320db91919e69378cac64ed..dd04a85112ecd089688e795b06c6d22b0ae6f96d 100644 --- a/include/management/snapshot/class_SnapshotCreateDialog.inc +++ b/include/management/snapshot/class_SnapshotCreateDialog.inc @@ -56,12 +56,24 @@ class SnapshotCreateDialog extends ManagementDialog ), ] ], + 'dataSource' => [ + 'name' => _('dataSource'), + 'attrs' => [ + new SetAttribute( + new SelectAttribute( + 'Data source', _('Origin / Source of the data'), + 'SnapshotSource', FALSE, + ), + ), + ] + ], ]; } function __construct (string $dn, management $parent, string $aclCategory) { parent::__construct(NULL, NULL, $parent); + // The attribut will be passed to parent for later saving, dataSource might require same logic. $this->attributesAccess['description']->setInLdap(FALSE); $this->object_dn = $dn; $this->aclCategory = $aclCategory; @@ -116,6 +128,7 @@ class SnapshotCreateDialog extends ManagementDialog function save (): array { + // We have to modify the createSnapshot to integrate the source Data $this->parent->createSnapshot($this->object_dn, $this->description); return []; }