Maintenance: Skip null values for the param check to prevent errors on the to string cast.

This commit is contained in:
Rolf Schmidt 2022-01-06 16:41:41 +01:00
parent 7adc0a12d0
commit e3afa31402

View file

@ -127,7 +127,7 @@ class App.FormHandlerCoreWorkflow
for value in values for value in values
# false values are valid values e.g. for boolean fields (be careful) # false values are valid values e.g. for boolean fields (be careful)
if value isnt undefined && paramValue isnt undefined if value isnt undefined && paramValue isnt undefined && value isnt null && paramValue isnt null
if value.toString() == paramValue.toString() if value.toString() == paramValue.toString()
valueFound = true valueFound = true
break break