Tabs are not working on ogroup templates
Tabs are not working on ogroup templates
Description
When you add a tab on an ogroup template, you get a crash when using it to create a group:
Fatal error: Uncaught Error: Call to undefined method stdClass::getRequiredAttributes() in /usr/share/fusiondirectory/include/class_template.inc:88 Stack trace: #0 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(68): template->__construct('OGROUP', 'cn=groupes-list...') #1 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(562): templateDialog->save_object() #2 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(1337): simpleManagement->execute() #3 /usr/share/fusiondirectory/plugins/admin/groups/main.inc(21): simpleManagement::mainInc('groupManagement') #4 /usr/share/fusiondirectory/html/main.php(280): require('/usr/share/fusi...') #5 {main} thrown in /usr/share/fusiondirectory/include/class_template.inc on line 88
Distribution Name and Version
Debian jessie
FusionDirectory Version
1.2-fixes
PHP version used
PHP 7.0.27-0+deb9u1 (cli) (built: Jan 5 2018 13:51:52) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.27-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies
Origin of php packages
Debian jessie
Steps to Reproduce
- create a group template
- add %askme% for name
- add %askme% for description
- add a user in the group
- save
- open again the template
- activate mail tab
- add something in mail address
- save
- use the template
- crash
Expected behavior:
Be able to use tabs on ogroups (aka groups)
Actual behavior:
crash
Reproduces how often:
100%