[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 463b001b5e78e61ed20f0adf040b6ba32adce9f9
Stefan Hornburg
racke at rt.icdevgroup.org
Mon Jul 6 09:11:27 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 463b001b5e78e61ed20f0adf040b6ba32adce9f9 (commit)
from 64f7ee4a56acfb573a3fec18206b5a0ba64cc4e8 (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 463b001b5e78e61ed20f0adf040b6ba32adce9f9
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Mon Jul 6 11:11:07 2009 +0200
determine name of wishlist from code
-----------------------------------------------------------------------
Summary of changes and diff:
plugins/wishlists/code/wishlist.tag | 3 +++
plugins/wishlists/code/wishlists.sub | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/plugins/wishlists/code/wishlist.tag b/plugins/wishlists/code/wishlist.tag
index 13c3169..f594e63 100644
--- a/plugins/wishlists/code/wishlist.tag
+++ b/plugins/wishlists/code/wishlist.tag
@@ -157,6 +157,9 @@ sub {
return $Tag->query ({sql => $sql, list => 1, prefix => 'item',
body => $body});
}
+ elsif ($function eq 'name') {
+ return $Db{carts}->field($wishlist_code, 'name');
+ }
elsif ($function eq 'status') {
my $status;
diff --git a/plugins/wishlists/code/wishlists.sub b/plugins/wishlists/code/wishlists.sub
index 58016e2..d8de00e 100644
--- a/plugins/wishlists/code/wishlists.sub
+++ b/plugins/wishlists/code/wishlists.sub
@@ -16,7 +16,10 @@ sub {
# select wishlist by code or name
if ($args[1] =~ /^(\d+)$/) {
$wishlist_code = $args[1];
+ $wishlist_name = $Tag->wishlist({function => 'name',
+ code => $wishlist_code});
$Tag->attribute('set', 'wishlist', 'code', $args[1]);
+ $Tag->attribute('set', 'wishlist', 'name', $wishlist_name);
}
else {
$wishlist_name = $args[1];
hooks/post-receive
--
Interchange wellwell catalog
More information about the wellwell-devel
mailing list