Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.3.0
-
Component/s: None
-
Labels:None
Description
Someone mentioned that a module's ::validateService method is passed a set of $vars, including $vars['configoptions'], but the configoptions may be a key/value array of option_id => value sometimes, or option_name => value other times. We should investigate to see where this occurs and what the expectation should be, and whether any core plugins are affected.
The discrepancy occurs any time Services::validate() or Services::validateService() methods are called. The expected input is array('label' => value) as defined in CORE-721 "The label and the value of the field will be sent to the module when the service is provisioned..." Presumably the solution is to make all locations conform to this. As for plugins, do you mean modules? If so I imagine it would depend on how the module uses the config options (which only a couple do).