mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-03-22 08:12 am

[dw-free] FAQ variables not expanded consistently in FAQ titles (questions)

[commit: http://hg.dwscoalition.org/dw-free/rev/9ee6280cbae6]

http://bugs.dwscoalition.org/show_bug.cgi?id=115

Fix display of empty FAQ categories.

Patch by [personal profile] pauamma.

Files modified:
  • htdocs/admin/faq/index.bml
--------------------------------------------------------------------------------
diff -r cab281adf877 -r 9ee6280cbae6 htdocs/admin/faq/index.bml
--- a/htdocs/admin/faq/index.bml	Sun Mar 22 00:39:27 2009 +0000
+++ b/htdocs/admin/faq/index.bml	Sun Mar 22 08:11:57 2009 +0000
@@ -50,6 +50,7 @@ body<=
     foreach my $faqcat ( sort { $faqcat{$a}->{catorder} <=> $faqcat{$b}->{catorder} } keys %faqcat ) {
         $ret .= "<h2><a href='readcat.bml?faqcat=$faqcat'>"
             . LJ::ehtml( $faqcat{$faqcat}->{faqcatname} ) . "</a></h2>\n";
+        next unless $faqq{$faqcat} && @{ $faqq{$faqcat} };
         $ret .= "<ul>\n";
         foreach my $faq ( sort { $a->sortorder <=> $b->sortorder } @{ $faqq{$faqcat} } ) {
             my $q = $faq->question_html;
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org