[interchange] Early exit from find_options_type if no sku provided

David Christensen interchange-cvs at icdevgroup.org
Wed Jun 14 19:58:58 UTC 2017


commit 2163a7c222a9b93fc50d925e77770353c186f477
Author: David Christensen <david at endpoint.com>
Date:   Fri Feb 24 16:08:32 2017 -0600

    Early exit from find_options_type if no sku provided

 lib/Vend/Options.pm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/Vend/Options.pm b/lib/Vend/Options.pm
index 3d0d898..1de47ab 100644
--- a/lib/Vend/Options.pm
+++ b/lib/Vend/Options.pm
@@ -68,6 +68,8 @@ sub find_options_type {
 
 	my $sku = $item->{mv_sku} || $item->{code};
 
+	return unless defined $sku && $sku ne '';
+
 	$opt = get_option_hash($opt);
 
 	my $module;



More information about the interchange-cvs mailing list