You are here: Foswiki>Tasks Web>Item855 (23 Feb 2009, KennethLavrsen)Edit Attach

Item855: Query syntax in IF statements does not work with underscore topic names

pencil
Priority: Urgent
Current State: Closed
Released In: 1.0.1
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: KennethLavrsen
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

ItemTemplate edit

Summary Query syntax in IF statements does not work with underscore topic names
ReportedBy ArthurClemens
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:7d4de4bc87a9
TargetRelease patch
ReleasedIn 1.0.1
Topic revision: r4 - 23 Feb 2009, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy