using module_load_include('inc', 'webform', 'components/[component type]'); will get incorrect functionality in case the components has been altered using hook_webform_component_info and the altered info is actually the included file/module.
correct is to use: webform_component_include([component type])
This issue exists on WebformConditionals->executeConditionals function defined in webform\includes\webform.webformconditionals.inc. Components number/select are loaded using:
module_load_include('inc', 'webform', 'components/number');
module_load_include('inc', 'webform', 'components/select');
Comments
Comment #2
aalin commentedComment #3
liam morlandWhen uploading a patch, please set status to "Needs review".
Comment #4
liam morlandThanks for the patch.
Currently, if $conditional_type is "numeric", the file "components/number.inc" gets loaded, not "components/numeric.inc".
Comment #6
liam morland