Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-09-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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.

Actions #2

Updated by Oliver Klee about 17 years ago

Andrew, what happens when you replace < with < ?

Actions #3

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.

Actions #4

Updated by Nikolas Hagelstein almost 17 years ago

Use CDATA!

Actions #5

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

Actions #6

Updated by Alexander Opitz over 11 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF