[wellwell-devel] [wellwell] Fix wrong field name for coupon number in WellWell::Coupon.
Stefan Hornburg
wellwell-devel at rt.icdevgroup.org
Tue Jul 20 14:31:33 UTC 2010
commit e0eb0edc4488c3a2a14df177fa9470e7e7bcb9c4
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Tue Jul 20 16:30:59 2010 +0200
Fix wrong field name for coupon number in WellWell::Coupon.
lib/WellWell/Coupon.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/WellWell/Coupon.pm b/lib/WellWell/Coupon.pm
index 2260677..57453c8 100644
--- a/lib/WellWell/Coupon.pm
+++ b/lib/WellWell/Coupon.pm
@@ -144,7 +144,7 @@ sub lookup {
die ::errmsg('Database missing: %s', 'coupons');
}
- $set = $dbif->query(q{select C.code,D.valid_from,D.valid_to from coupons C left join coupon_dates D on (C.code = D.coupon_code) where C.coupon_code = '%s' and C.inactive is FALSE order by D.valid_from ASC},
+ $set = $dbif->query(q{select C.code,D.valid_from,D.valid_to from coupons C left join coupon_dates D on (C.code = D.coupon_code) where C.coupon_number = '%s' and C.inactive is FALSE order by D.valid_from ASC},
$coupon_number);
if (@$set) {
More information about the wellwell-devel
mailing list