Problem with new While action

Wappler Version : 2.3.2
Operating System :

Expected behavior

Adding the new While action shouldn’t affect existing server action files

…YOUR TEXT HERE …

Actual behavior

Some exising action files no longer work correctly

…YOUR TEXT HERE …

How to reproduce

I’m not sure exactly what triggers this, but if you try running a number of your existing action files which include conditions, you will probably find this error:
**Parse error** : syntax error, unexpected 'while' (T_WHILE), expecting identifier (T_STRING) in ...

Eg, this action file toggles the status of a record. I probably use it for most tables in a CRUD system. It no longer works - failing with the error above.

image

If I comment out this section of \dmxConnectLib\modules\core.php:

image

all is well again.

(I couldn’t get the new while loop to work, but that’s not such a problem at the moment)

Community Page
Last updated: