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.

Item8987: TOPICLIST does not work on webs with NOSEARCHALL set

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine    
%TOPICLIST{"..." web="XXX"}% does nothing on webs where NOSEARCHALL is set

This is not the correct behavior, as this is not a search-in-all-webs operation, but one targetting a single web. This bug was already there in TWiki 4.0.

The fix is quite simple, suppressing the 3 lines at lib/Foswiki.pm in function TOPICLIST (line 3930)
    return ''
      if $web ne $this->{webName}
          && $this->{prefs}->getWebPreferencesValue( 'NOSEARCHALL', $web );

I will commit the fix if no objection is raised

-- ColasNahaboo - 06 May 2010

That would be too sweeping a change; there may be apps depending on this legacy behaviour. So instead, if a web is explicitly named, don't check NOSEARCHALL.

-- CrawfordCurrie - 13 Jun 2010

 

ItemTemplate edit

Summary TOPICLIST does not work on webs with NOSEARCHALL set
ReportedBy ColasNahaboo
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:7761
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r6 - 04 Oct 2010, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads