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

Merge branch '5754-no-defined-variables-in-hook-snapshotcreatedialog' into '1.4-dev'

Resolve "No defined variables in hook SnapshotCreateDialog"

See merge request fusiondirectory/fd!613
Showing with 10 additions and 0 deletions
+10 -0
...@@ -111,4 +111,14 @@ class SnapshotCreateDialog extends ManagementDialog ...@@ -111,4 +111,14 @@ class SnapshotCreateDialog extends ManagementDialog
$this->parent->createSnapshot($this->object_dn, $this->description); $this->parent->createSnapshot($this->object_dn, $this->description);
return []; return [];
} }
function fillHookAttrs (array &$addAttrs)
{
parent::fillHookAttrs($addAttrs);
foreach (array_keys($this->attributesAccess) as $attr) {
if (!isset($addAttrs[$attr])) {
$addAttrs[$attr] = $this->$attr;
}
}
}
} }
Supports Markdown
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