You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing a rule with an action which has a boolean parameter, the error is thrown which prevents proper form rendering (especially "Save" button action is not assigned).
Error
TypeError: paramValue.toLowerCase is not a function
at Alfresco.RuleConfigActionCustom._convertType (rule-config_4a306578c85215e54534b99e5391c237.js:2023:31)
at Alfresco.RuleConfigActionCustom._createCheckbox (rule-config_4a306578c85215e54534b99e5391c237.js:1596:37)
at Alfresco.RuleConfigActionCustom.edit (rule-config_4a306578c85215e54534b99e5391c237.js:1375:28)
at Alfresco.RuleConfigActionCustom.RuleConfig__createConfigParameterUI [as _createConfigParameterUI] (rule-config_4a306578c85215e54534b99e5391c237.js:950:40)
at Alfresco.RuleConfigActionCustom.RuleConfig__createConfigUI [as _createConfigUI] (rule-config_4a306578c85215e54534b99e5391c237.js:772:15)
at Alfresco.RuleConfigActionCustom.RuleConfig_displayRulConfigs [as displayRuleConfigs] (rule-config_4a306578c85215e54534b99e5391c237.js:394:18)
at RuleEdit_constructor.RuleEditUtil_displayRuleConfigs [as displayRuleConfigs] (rule-config-util_c10402243abfc520abac3eaed8927dd7.js:290:21)
at RuleEdit_constructor.RuleEdit_displayRule [as displayRule] (rule-edit_e5e6ad389f43182b4768920572895dbf.js:383:15)
at RuleEdit_constructor.RuleEdit_onRuleConfigsReady [as onRuleConfigsReady] (rule-edit_e5e6ad389f43182b4768920572895dbf.js:344:18)
at RuleEdit_constructor.RuleEditUtil_onRuleConfigReady [as onRuleConfigReady] (rule-config-util_c10402243abfc520abac3eaed8927dd7.js:173:15)
Steps to reproduce
Go to Repository and Manage rules
Create a new rule with action "Copy" (which contains a checkbox parameter)
Edit an action
Proposed solution
In the rule-config.js file in the _convertType() function in the "d:boolean" if, add the following code:
if (typeof paramValue === "boolean") {
return paramValue;
}
Affected file
rule-config.js
Affected version
Tested on Alfresco Community 7.2.0.
Background
It seems the connected error has been already reported by the Seng Liaw (MNT-22238) and @alexbalmus tried to fix it here which is the cause of this error. @alexbalmus boolean values from "Set property" action are strings, whereas boolean values from action parameters are boolean values - probably this led to the mistake.
The text was updated successfully, but these errors were encountered:
Description
When editing a rule with an action which has a boolean parameter, the error is thrown which prevents proper form rendering (especially "Save" button action is not assigned).
Error
Steps to reproduce
Proposed solution
In the rule-config.js file in the _convertType() function in the "d:boolean" if, add the following code:
Affected file
rule-config.js
Affected version
Tested on Alfresco Community 7.2.0.
Background
It seems the connected error has been already reported by the Seng Liaw (MNT-22238) and @alexbalmus tried to fix it here which is the cause of this error.
@alexbalmus boolean values from "Set property" action are strings, whereas boolean values from action parameters are boolean values - probably this led to the mistake.
The text was updated successfully, but these errors were encountered: