From 4cbbed35099dd9cc8270e713efd35c2129eea633 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 7 Jul 2010 15:52:16 -0700 Subject: [PATCH] Allow creationDate to be settable in the Cart. --- lib/WebGUI/Shop/Cart.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/WebGUI/Shop/Cart.pm b/lib/WebGUI/Shop/Cart.pm index 589a192c0..b573d8349 100644 --- a/lib/WebGUI/Shop/Cart.pm +++ b/lib/WebGUI/Shop/Cart.pm @@ -7,36 +7,36 @@ use Moose; use WebGUI::Definition; property 'shippingAddressId' => ( - is => 'rw', noFormPost => 1, default => '', ); property 'billingAddressId' => ( - is => 'rw', noFormPost => 1, default => '', ); property 'shipperId' => ( - is => 'rw', noFormPost => 1, default => '', ); property 'gatewayId' => ( - is => 'rw', noFormPost => 1, default => '', ); property 'posUserId' => ( - is => 'rw', noFormPost => 1, default => '', ); -has [ qw/cartId creationDate session/] => ( +property creationDate => ( + required => 1, + noFormPost => 1, + default => '', +); +has [ qw/cartId session/] => ( is => 'ro', required => 1, );