From 2189fa25808e8ee62c02048015527444500a0f0e Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 12 Jun 2008 17:34:10 +0000 Subject: [PATCH] make sure that commerce products with no variants still have a sku variant created for them with a title --- docs/upgrades/upgrade_7.5.10-7.5.11.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/upgrades/upgrade_7.5.10-7.5.11.pl b/docs/upgrades/upgrade_7.5.10-7.5.11.pl index 474af972e..fb666fa38 100644 --- a/docs/upgrades/upgrade_7.5.10-7.5.11.pl +++ b/docs/upgrades/upgrade_7.5.10-7.5.11.pl @@ -1202,6 +1202,7 @@ sub mergeProductsWithCommerce { $shortdesc .= sprintf('%s:%s,', $parameter, $value); } $shortdesc =~ s/,$//; ##tidy up and clip to 30 chars + $shortdesc = $productData->{title} unless $shortdesc; $shortdesc = substr $shortdesc, 0, 30; my $variant;