kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-07-20 03:02 pm

[dw-free] remove deleted journals from Give a Gift page

[commit: http://hg.dwscoalition.org/dw-free/rev/5f3e59144268]

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

Don't include journals that aren't visible.

Patch by [staff profile] denise.

Files modified:
  • htdocs/shop/gifts.bml
--------------------------------------------------------------------------------
diff -r 8436dde86847 -r 5f3e59144268 htdocs/shop/gifts.bml
--- a/htdocs/shop/gifts.bml	Sun Jul 19 10:05:44 2009 +0000
+++ b/htdocs/shop/gifts.bml	Mon Jul 20 10:01:48 2009 -0500
@@ -35,7 +35,7 @@ body<=
 
     foreach my $target ( values %$circle ) {
 
-        if ( $target->is_person || $target->is_community ) {
+        if ( ( $target->is_person || $target->is_community ) && $target->is_visible ) {
             my $paidstatus = DW::Pay::get_paid_status( $target );
 
             # account is free if it has no paidstatus, if it's not permanent,
--------------------------------------------------------------------------------