Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
floats are truncated (casted in integer) with andCondition function #125
The issue was initially written in Modx Revolution modxcms/revolution#13657 (comment)
Using floats in a 'andCondition' call would transform them as integer
Step to reproduce
create an XPDO query calling andCondtion as this following exemple
result is like this one :
Suggestion for solving the problem
Perhaps I missed something but...
The problem was detected in the parseBindings function using the 'quote' function... called line 2670 --2704 in modx revo 2.5.8-- in core/xpdo/xpdo.class.php
Whatever type (int, float, ...) , you call 'quote'...
The problem sounds to be solved by changing line 2534 --2560 in modx revo-- in core/xpdo/xpdo.class.php in function quote
Actually, it seems like float are seen like "param_int" (versus param_str) all along the processing...
referenced this issue
Oct 24, 2017
For the "locale" part, I'm not sure what the server uses... I let everything by default in modx
Here my schema: