🚑 fix(snapshot) Make sure snapshot attributes are available to check hook

issue #5754
parent df0bb026
......@@ -111,4 +111,14 @@ class SnapshotCreateDialog extends ManagementDialog
$this->parent->createSnapshot($this->object_dn, $this->description);
return [];
}
function fillHookAttrs (array &$addAttrs)
{
parent::fillHookAttrs($addAttrs);
foreach (array_keys($this->attributesAccess) as $attr) {
if (!isset($addAttrs[$attr])) {
$addAttrs[$attr] = $this->$attr;
}
}
}
}
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