You are here: Foswiki>Tasks Web>Item11864 (15 May 2012, MichaelDaum)Edit Attach

Item11864: FORMATLIST limit="0" treated as limit="-1". Returning all results

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FilterPlugin
Branches: trunk
Reported By: PaulAlexander
Waiting For:
Last Change By: MichaelDaum

Sample of two lists

I have created a list of paged SEARCH results using FORMATLIST and I need to pass limit = "0" when required:
 %SEARCH{
    type="query"
    "form.name='MyForm'"
    web="%BASEWEB%.%BASETOPIC%"
    pager="on"
    zeroresults="limit=\"0\""
    nonoise="on"
    pagerformat="limit=\"$numberofpages\""
    pagesize="%URLPARAM{"pagesize" default="%pagesize%"}%"
    format=" "
  }%
i.e. When the SEARCH returns zero results I need FORMATLIST to also return zero results.

-- PaulAlexander - 15 May 2012

Fixed in version 3.02

-- MichaelDaum - 15 May 2012
 

ItemTemplate edit

Summary FORMATLIST limit="0" treated as limit="-1". Returning all results
ReportedBy PaulAlexander
Codebase
SVN Range
AppliesTo Extension
Component FilterPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins FilterPlugin:9600b8b5db7d
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches trunk
trunkCheckins FilterPlugin:9600b8b5db7d
Release01x01Checkins
Topic revision: r3 - 15 May 2012, 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