Bug #17596
closedUnable to use < or <= in where clauses with a foreign_table_where tag in a flexform config
0%
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)
Updated by Andrew Henson about 17 years ago
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.
Updated by Oliver Klee about 17 years ago
Andrew, what happens when you replace < with < ?
Updated by Andrew Henson about 17 years ago
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.
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0)
Closing as solution is provided ... using CDATA in XML
Updated by Alexander Opitz over 11 years ago
- Status changed from Needs Feedback to Closed