Parameter overload in Choice module does not work in the manager
Concerned version
Version: %2.0
Platform: Nginx
Summary
Adding overload parameters in the manager on a choice module is erratic
Sometimes it works, sometimes it doesnt, with this JS error:
TypeError: e[5].push is not a function
at m.f.newChoiceOver (manager.min.js:1)
at m.f.menuClick (manager.min.js:1)
at angular.js:16943
at e (angular.js:28951)
at m.$eval (angular.js:19393)
at m.$apply (angular.js:19492)
at HTMLAnchorElement.<anonymous> (angular.js:28955)
at HTMLAnchorElement.dispatch (jquery.min.js:2)
at HTMLAnchorElement.v.handle (jquery.min.js:2)
It seems like it works when you immediately add parameters after creating the module. And then you can't edit it.
Either way, whenever it works on the manager side, the result looks like this in conf:
'authChoiceModules' => {
'1_Key' => 'LDAP;LDAP;Null;;;[["key1","val"],["key2","val"]]'
},
which immediately causes error 500 on the portal:
Not a HASH reference at /usr/share/perl5/Lemonldap/NG/Common/Conf/Wrapper.pm line 10
However, manually editing the config with the correct format
'authChoiceModules' => {
'1_Key' => 'LDAP;LDAP;Null;;;{"key": "val" }'
},
works fine. So this is a manager issue. It doesnt look like a regression either, since I couldn't find a version in the 2.0 branch where this worked in the manager