[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 9b2d912338cb65d09c9cf53f6669146fd8805cb8

Stefan Hornburg racke at rt.icdevgroup.org
Thu Apr 9 10:04:02 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  9b2d912338cb65d09c9cf53f6669146fd8805cb8 (commit)
      from  79691f9b44a84e73e2e6453bd3d7672d4f5151c9 (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 9b2d912338cb65d09c9cf53f6669146fd8805cb8
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Thu Apr 9 12:03:25 2009 +0200

    use $Tag->time instead of time to avoid requring SafeUntrap
    update last_modified field in carts

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

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

diff --git a/plugins/wishlists/code/wishlist.tag b/plugins/wishlists/code/wishlist.tag
index 9691c15..7469038 100644
--- a/plugins/wishlists/code/wishlist.tag
+++ b/plugins/wishlists/code/wishlist.tag
@@ -60,7 +60,7 @@ sub {
 		unless ($wishlist_code) {
 			$wishlist_code = $Db{carts}->autosequence();
 			$Db{carts}->set_slice($wishlist_code, uid => $Session->{username},
-								created => time(),
+								created => $Tag->time({format => '%s'}),
 								name => $name);
 		}
 
@@ -80,6 +80,10 @@ sub {
 		}
 
 		$Db{cart_products}->set_slice([$wishlist_code, $sku], \%data);
+
+		# update timestamp on cart
+		$Db{carts}->set_field($wishlist_code, 'last_modified', $Tag->time({format => '%s'}));
+
 		return 1;
 	}
 


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list