From f8e69b2244846120014c66c9a22ded30dc6b5567 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Tue, 16 May 2006 19:31:05 +0000 Subject: [PATCH] sku prepended to title --- lib/WebGUI/Commerce/Item/Event.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Commerce/Item/Event.pm b/lib/WebGUI/Commerce/Item/Event.pm index 386c27347..c03d4f9fc 100644 --- a/lib/WebGUI/Commerce/Item/Event.pm +++ b/lib/WebGUI/Commerce/Item/Event.pm @@ -72,7 +72,7 @@ sub isRecurring { #------------------------------------------------------------------- sub name { - return $_[0]->{_event}->{title}; + return $_[0]->{_event}->{sku}." ".$_[0]->{_event}->{title}; } #------------------------------------------------------------------- @@ -89,7 +89,7 @@ sub new { $session = shift; $eventId = shift; - my $eventData = $session->db->quickHashRef("select p.productId, p.title, p.description, p.price, e.approved, e.passId, e.passType + my $eventData = $session->db->quickHashRef("select p.productId, p.title, p.description, p.price, p.sku, e.approved, e.passId, e.passType from EventManagementSystem_products as e, products as p where p.productId = e.productId and p.productId=".$session->db->quote($eventId));