[interchange] Revert "Fix code which assumes we already have a hashref"

David Christensen interchange-cvs at icdevgroup.org
Mon Nov 14 15:03:04 UTC 2016


commit 93fa3c59759754bb2b189b7071cc3d65cd986c3e
Author: David Christensen <david at endpoint.com>
Date:   Mon Nov 14 09:02:42 2016 -0600

    Revert "Fix code which assumes we already have a hashref"
    
    As per interchange-users discussion.
    
    This reverts commit 847ef1d1856cf121b4b09c9fcf6170f7310048bc.

 lib/Vend/Data.pm |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/Vend/Data.pm b/lib/Vend/Data.pm
index edeac3c..5313f72 100644
--- a/lib/Vend/Data.pm
+++ b/lib/Vend/Data.pm
@@ -1643,11 +1643,10 @@ sub item_price {
 
 #::logDebug("item_price initial call: " . (ref $item ? $item->{code} : $item));
 
-	$item = { 'code' => $item } unless ref $item;
-
 	return $item->{mv_cache_price}
 		if ! $quantity and ref($item) and defined $item->{mv_cache_price};
 
+	$item = { 'code' => $item } unless ref $item;
 	$item->{quantity} = 1 if ! defined $item->{quantity};
 
 	if(	!	$item->{mv_ib}



More information about the interchange-cvs mailing list