Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure that SKU is properly initialized in init function of [reviews]…
… tag.
  • Loading branch information
racke committed Sep 1, 2010
1 parent 8e26a55 commit b572eea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/reviews/code/reviews.tag
Expand Up @@ -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/) {
Expand Down

0 comments on commit b572eea

Please sign in to comment.