[wellwell-devel] [wellwell] Ensure that SKU is properly initialized in init function of [reviews] tag.
Stefan Hornburg
wellwell-devel at rt.icdevgroup.org
Wed Sep 1 14:24:15 UTC 2010
commit b572eeaf0dca35a4daa5b28da316299e1195bcea
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Wed Sep 1 16:23:30 2010 +0200
Ensure that SKU is properly initialized in init function of [reviews] tag.
plugins/reviews/code/reviews.tag | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/reviews/code/reviews.tag b/plugins/reviews/code/reviews.tag
index 3067178..e62844a 100644
--- a/plugins/reviews/code/reviews.tag
+++ b/plugins/reviews/code/reviews.tag
@@ -83,6 +83,8 @@ sub {
}
elsif ($function eq 'init') {
# set defaults for the review form
+ $Values->{sku} = $sku || $Scratch->{sku};
+
$Values->{rating} = 0;
for (qw/title review/) {
More information about the wellwell-devel
mailing list