[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 0dbd811ed90fbc1cc9e0e30dac5ac9cfc9805e1d
Stefan Hornburg
racke at rt.icdevgroup.org
Fri Apr 3 10:50:34 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 0dbd811ed90fbc1cc9e0e30dac5ac9cfc9805e1d (commit)
via 53e98ce0d98554816b2e403e87dd0b64bea677f7 (commit)
from 50735e51d7712a3117b316067ff9ffe5e01b29ce (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 0dbd811ed90fbc1cc9e0e30dac5ac9cfc9805e1d
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Fri Apr 3 12:49:42 2009 +0200
more specific error message, allow to select specific wishlist
commit 53e98ce0d98554816b2e403e87dd0b64bea677f7
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Thu Apr 2 10:48:55 2009 +0200
fix incorrect file extension
-----------------------------------------------------------------------
Summary of changes and diff:
...heme_form_submit.code => theme_form_submit.sub} | 0
plugins/wishlists/code/wishlists.sub | 20 ++++++++++++++++++--
2 files changed, 18 insertions(+), 2 deletions(-)
rename code/{theme_form_submit.code => theme_form_submit.sub} (100%)
diff --git a/code/theme_form_submit.code b/code/theme_form_submit.sub
similarity index 100%
rename from code/theme_form_submit.code
rename to code/theme_form_submit.sub
diff --git a/plugins/wishlists/code/wishlists.sub b/plugins/wishlists/code/wishlists.sub
index 9824080..9ec4a48 100644
--- a/plugins/wishlists/code/wishlists.sub
+++ b/plugins/wishlists/code/wishlists.sub
@@ -4,7 +4,7 @@ sub {
my ($name, @args) = split(/\//, $page);
unless ($Session->{logged_in}) {
- $Tag->warnings('Please login first.');
+ $Tag->warnings(errmsg('Please login before adding a product to the wishlist.'));
$CGI->{mv_nextpage} = 'login';
$Scratch->{login_target} = '';
$Scratch->{login_bounce} = $page;
@@ -32,7 +32,23 @@ sub {
}
# show wishlist for the current user
- $CGI->{mv_nextpage} = 'wishlists/list';
+ if ($args[0] eq 'carts') {
+ $CGI->{mv_nextpage} = 'wishlists/carts';
+ }
+ else {
+ if ($args[1]) {
+ # select wishlist by code or name
+ if ($args[1] =~ /^(\d+)$/) {
+ $Tag->attribute('set', 'wishlist.code', $args[1]);
+ }
+ else {
+ $Tag->attribute('set', 'wishlist.name', $args[1]);
+ }
+ }
+
+ $CGI->{mv_nextpage} = 'wishlists/list';
+ }
+
return 1;
}
EOS
hooks/post-receive
--
Interchange wellwell catalog
More information about the wellwell-devel
mailing list