When evaluating "is null" conditions on workflows conditions, a special case is added when the type is numeric.
When checking if a field is null it was being compared to '', bu tnull numeric types are setted to NULL, so the condition was not met.
The field type has been added to the function, and a special case for numeric fields hs been added.
Motivation and Context
Is null check was not working for numeric fields.
How To Test This
Add a numeric field to a module
Define a workflow on that module
Define a condition that requires that field to be null
Check that on save (and on the scheduler) the workflow is executed if and only if the field is null.
Types of changes
[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Final checklist
[X] My code follows the code style of this project found here.
[ ] My change requires a change to the documentation.
Description
When evaluating "is null" conditions on workflows conditions, a special case is added when the type is numeric. When checking if a field is null it was being compared to '', bu tnull numeric types are setted to NULL, so the condition was not met. The field type has been added to the function, and a special case for numeric fields hs been added.
Motivation and Context
Is null check was not working for numeric fields.
How To Test This
Types of changes
Final checklist