You are here: Foswiki>Tasks Web>Item12805 (19 Mar 2014, MichaelDaum)Edit Attach

Item12805: sub hashes in LSC aren't accessible anymove using QUERY or IF

pencil
Priority: Urgent
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Engine
Component:
Branches: trunk
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
This

%QUERY{"{AccessibleCFG}"}%

does just fine but accessing a sub-hash like this

%QUERY{"{Site}{CharSet}"}%

returns nothing

Compare http://trunk.foswiki.org/Sandbox/QueryTest with http://foswiki.org/Sandbox/QueryTest

CDot, any idea?

-- MichaelDaum - 18 Mar 2014

Found it: http://trac.foswiki.org/changeset/17320/trunk/core/lib/Foswiki/Query/Node.pm

The matched group only assigns the first {...} hash to $val throwing away the rest.

-- MichaelDaum - 19 Mar 2014
 

ItemTemplate edit

Summary sub hashes in LSC aren't accessible anymove using QUERY or IF
ReportedBy MichaelDaum
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:f00ac594a82f
TargetRelease minor
ReleasedIn 1.2.0
CheckinsOnBranches trunk
trunkCheckins distro:f00ac594a82f
Release01x01Checkins
Topic revision: r3 - 19 Mar 2014, MichaelDaum
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