NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item855: Query syntax in IF statements does not work with underscore topic names
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Urgent |
Closed |
Engine |
|
|
For a topic
TestTopic that has a form field Author, this works (returns 'Author'):
%IF{"'TestTopic'/Author" then="Author" else="no Author"}%
This also works (returns 'Author'):
%IF{"'%TOPIC%'/Author" then="Author" else="no Author"}%
For a topic
Test_topic that has a form field Author, this does not work (returns 'no Author'):
%IF{"'Test_topic'/Author" then="Author" else="no Author"}%
This also does not work (returns 'no Author'):
%IF{"'%TOPIC%'/Author" then="Author" else="no Author"}%
--
ArthurClemens - 24 Jan 2009
Crawford has suggested this fix:
"Comment out lines 39, 40 and 41 (next if ...) of lib/Foswiki/Query/OP_ref.pm"
That works. Need to run unit tests to see if nothing breaks.
--
ArthurClemens - 24 Jan 2009
Tests run fine. Closing.
--
ArthurClemens - 24 Jan 2009