1

Closed

Issue with passing false as value to a required boolean parameter in an action

description

If the value of the boolean parameter is passed as false, the code below passes null to the action. This will cause problems if the boolean parameter is "Required".

The code below is in Process._getXmlValue funciton
default: // bool, int, double, decimal
            xmlValue = value || null;
            break;
The fix that I used is below:
 case Process.Type.Bool:
            xmlValue = value;
            break;
        default: //int, double, decimal
            xmlValue = value || null;
            break;
Please apply this fix or provide a better fix for this issue in the next release.
Closed Jan 31 at 1:37 AM by Liger_cp <SND\Liger_cp>

comments

Liger wrote Jan 31 at 1:37 AM

Hi there, thanks for reporting this bug. I've updated the code to handle this better, and have pushed the change into the current release. You can download the current version again to receive the update. Cheers, Paul

wrote Jan 31 at 1:37 AM