Something went wrong while setting issue due date.
No defined variables in hook SnapshotCreateDialog
Closed
No defined variables in hook SnapshotCreateDialog
Description
In the case you need a hook when snapshoting an account for example, only one action is called : "check"
Unfortunately this hooks isn't giving any variables on the snapshot object, except those about the CALLER
Distribution Name and Version
- Debian 8
FusionDirectory Version
fusiondirectory/stable,now 1.2-1 all [installé]
Web Based LDAP Administration Program
PHP version used
$ php -v
PHP 5.6.33-0+deb8u1 (cli) (built: Jan 5 2018 16:30:14)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
Origin of php packages
Debian
Steps to Reproduce
- Create a hooks which expose the arguments and exit with 1
- Call this hook on object SnapshotCreateDialog whith action check" with command /path_to_hooks/test %object_dn% %timestamp% %description%
- Check the case show the hook result
- Launch a snapshot on one user
Expected behavior:
- An alert with at least the variable %object_dn% with the dn of the object of the snapshot
Actual behavior:
- The alert will show that none of the variables are present
Reproduces how often:
Every time
Additional Information
- You can check the SnapshotCreateDialog here
- And the check public function, inherited from class simplePlugins : direct access to function check