[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 64f7ee4a56acfb573a3fec18206b5a0ba64cc4e8

Stefan Hornburg racke at rt.icdevgroup.org
Fri Jul 3 15:22:56 UTC 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange wellwell catalog".

The branch, master has been updated
       via  64f7ee4a56acfb573a3fec18206b5a0ba64cc4e8 (commit)
      from  1ce7e4808076608f39172d0a20a945d197d65d5e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 64f7ee4a56acfb573a3fec18206b5a0ba64cc4e8
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Fri Jul 3 17:22:09 2009 +0200

    passed option added

-----------------------------------------------------------------------

Summary of changes and diff:
 plugins/wishlists/code/wishlist.tag |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/plugins/wishlists/code/wishlist.tag b/plugins/wishlists/code/wishlist.tag
index ddf9cc3..13c3169 100644
--- a/plugins/wishlists/code/wishlist.tag
+++ b/plugins/wishlists/code/wishlist.tag
@@ -19,8 +19,15 @@ sub {
 	if ($function eq 'carts') {
 		my @carts;
 
-		$set = $Db{carts}->query(qq{select code from carts where uid = $Session->{username} and type = '%s' order by name}, $type); 
-		@carts = map {$_->[0]} @$set;
+		if ($opt->{passed}) {
+			# produce string suitable for [display passed=]
+			$set = $Db{carts}->query(qq{select code,name from carts where uid = $Session->{username} and type = '%s' order by name}, $type); 
+			@carts = map {"$_->[0]=$_->[1]"} @$set;
+		}
+		else {
+			$set = $Db{carts}->query(qq{select code from carts where uid = $Session->{username} and type = '%s' order by name}, $type); 
+			@carts = map {$_->[0]} @$set;
+		}
 
 		return wantarray ? @carts : join(',', @carts);
 	}


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list