[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 2af41d33cd91da50e1bebe1e9cd23ffce1194057

Stefan Hornburg racke at rt.icdevgroup.org
Tue Apr 20 10:24:32 UTC 2010


       via  2af41d33cd91da50e1bebe1e9cd23ffce1194057 (commit)
       via  4b34f1cca309840cbf5d5fdf73842ed28cf55d83 (commit)
      from  8da5ed59e3ef9132f71a1971ada20ec954776633 (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 2af41d33cd91da50e1bebe1e9cd23ffce1194057
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Tue Apr 20 12:24:10 2010 +0200

    Added redirect flag for form save hooks.

commit 4b34f1cca309840cbf5d5fdf73842ed28cf55d83
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Tue Apr 20 12:22:34 2010 +0200

    create function of [wishlist] tag returns cart code instead of 1

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

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

diff --git a/code/form.tag b/code/form.tag
index 8dee8c6..5e9c96c 100644
--- a/code/form.tag
+++ b/code/form.tag
@@ -87,7 +87,7 @@ sub {
 					}
 				}
 				# check for appropriate hook for saving
-				my ($hook, $hooksub, $hookret);
+				my ($hook, $hooksub, $hookret, $href);
 
 				$hook = join('_', 'form', $name, 'save');
 				$hooksub = $Config->{Sub}{$hook};
@@ -100,6 +100,10 @@ sub {
 						if ($hookret->{jump}) {
 							$CGI->{form_series_jump} = $hookret->{jump};
 						}
+						if ($hookret->{redirect}) {
+							$href = $Tag->area($hookret->{page});
+							$Tag->deliver({location => $href, status => '302 moved temporarily'});
+						}
 						return;
 					}
 					elsif ($hookret->{jump}) {
diff --git a/plugins/wishlists/code/wishlist.tag b/plugins/wishlists/code/wishlist.tag
index 4ce4322..a8f40c5 100644
--- a/plugins/wishlists/code/wishlist.tag
+++ b/plugins/wishlists/code/wishlist.tag
@@ -144,7 +144,7 @@ sub {
 		# update timestamp on cart
 		$Db{carts}->set_field($wishlist_code, 'last_modified', $Tag->time({format => '%s'}));
 
-		return 1;
+		return $wishlist_code;
 	}
 	elsif ($function eq 'touch') {
 		if ($wishlist_code) {


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list