Item12459: DBRECURSE not rendering topics

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: DBCachePlugin
Branches: trunk
Reported By: LynnwoodBrown
Waiting For:
Last Change By: LynnwoodBrown
Using the basic example provided for RECURSE tag but adding a footer setting:
%DBRECURSE{"System.FrequentlyAskedQuestions" footer=" $n   * $count"}%

...results in display of the footer with count but no topics are listed. If a header setting is added, no heading is provided either. I tried adding format also but this had no affect.

This was done using the latest version so DBCachePlugin (5.20) and DBCacheContrib (2.20).

-- LynnwoodBrown - 29 Mar 2013

Here's a hot-fix:

--- lib/Foswiki/Plugins/DBCachePlugin/Core.pm   (revision 16641)
+++ lib/Foswiki/Plugins/DBCachePlugin/Core.pm   (working copy)
@@ -978,9 +978,9 @@
   return '' if $params->{hidenull} eq 'on' && $params->{_count} == 0;
 
   my $text = expandVariables(
-      ($params->{_count} == 1)?$params->{singleheader}:$params->{header}.
+      (($params->{_count} == 1)?$params->{singleheader}:$params->{header}).
       join($params->{separator},@$result).
-      ($params->{_count} == 1)?$params->{singlefooter}:$params->{footer}, 
+      (($params->{_count} == 1)?$params->{singlefooter}:$params->{footer}), 
       $thisWeb, $thisTopic, 
       count=>$params->{_count});

-- MichaelDaum - 30 Mar 2013

Tested and confirmed working. Thanks so much for fixing this so quickly!

-- LynnwoodBrown - 02 Apr 2013
 
Topic revision: r4 - 02 Apr 2013, LynnwoodBrown
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