[wellwell-devel] [wellwell/zoom] Ensure that SKU is properly initialized in init function of [reviews] tag.
Stefan Hornburg
wellwell-devel at rt.icdevgroup.org
Wed Sep 15 10:46:30 UTC 2010
commit 17a796d3a6030d1bc7e4d8f5af8346f26d67c7e8
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