Bug #17596
closed
Unable to use < or <= in where clauses with a foreign_table_where tag in a flexform config
Added by Andrew Henson about 17 years ago.
Updated over 11 years ago.
Description
In a foreign_table_where tag, trying to do something like:
<foreign_table_where> AND some_field<10</foreign_table_where>
Gives error:
Data Structure ERROR: Line 17: XML_ERR_NAME_REQUIRED
(issue imported from #M6330)
I should add that the line 17 is just copied from my example, with field name substituted. The line number will refer to the line in the flexform xml that has the foreign_table_where tag.
I'm pretty sure the problem lies around the xml2array function using the php xml parser.
Andrew, what happens when you replace < with < ?
Oliver,
Yes, that essentially solves the problem. I'm not sure whether something could be done about it but perhaps the documentation should get updated to point this out. Or that you could do what I just did to solve it which was to reverse the expression, so "x < y" becomes "y > x". I prefer mine because it should be clearer to understand what's going on when you come back to it in the future.
- Status changed from New to Needs Feedback
- Target version deleted (
0)
Closing as solution is provided ... using CDATA in XML
- Status changed from Needs Feedback to Closed
Also available in: Atom
PDF