Workflow problem when applying a template to an object triggers errors
Description
I tried to apply a template which change some fields ( postal address and add a partage email account
Distribution Name and Version
Debian 9
FusionDirectory Version
1.3
PHP version used
7
Origin of php packages
php from debian stretch
Steps to Reproduce
- select an account
- choose a template to apply
- click on "OK" to apply template
- an errors occurs because email already exist ( on partage mail system)
- I acknowledge the error
- Fd come back on screen width some field ( see attachment ), password is randomly filled
- I click on OK : errors occurs If I clique on cancel : no errors and I 'll come back to user list
Expected behavior:
no Error If I click on "OK", because all field are OK.
Actual behavior:
Fatal error: Uncaught Error: Call to a member function set_acl_base() on null in /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc:966 Stack trace: #0 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(78): simpleManagement->openTabObject(NULL, 'ou=incoming,dc=...') #1 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(576): templateDialog->save_object() #2 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(1356): simpleManagement->execute() #3 /usr/share/fusiondirectory/plugins/admin/users/main.inc(21): simpleManagement::mainInc('userManagement') #4 /usr/share/fusiondirectory/html/main.php(284): require('/usr/share/fusi...') #5 {main} thrown in /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc on line 966
Reproduces how often:
100 %