From e992b455c78cb5fd32a8fb7d8a4933b4a8a078bf Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Mon, 12 Jun 2006 16:40:37 +0000 Subject: [PATCH] (NewSearchFreeTextTitleAndBody): Do not apply limit when building a journal using search. --- modules/search-freetext.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/search-freetext.pl b/modules/search-freetext.pl index baf441fc..19a9f0e1 100644 --- a/modules/search-freetext.pl +++ b/modules/search-freetext.pl @@ -40,7 +40,7 @@ sub process { package OddMuse; -$ModulesDescription .= '

$Id: search-freetext.pl,v 1.40 2006/06/11 15:51:42 as Exp $

'; +$ModulesDescription .= '

$Id: search-freetext.pl,v 1.41 2006/06/12 16:40:37 as Exp $

'; push(@MyRules, \&SearchFreeTextTagsRule); @@ -203,7 +203,8 @@ sub NewSearchFreeTextTitleAndBody { # limit to the result page requested $max = @result - 1 if @result -1 < $max; my $count = ($page - 1) * $limit; - my @items = @result[($page - 1) * $limit .. $max]; + my @items = @result[($page - 1) * $limit .. $max] + unless $CollectingJournal; # when building a journal using search, no limit! # print links, if this is is really a search my $raw = GetParam('raw',''); my @links = ();