[interchange] Revert "Fix code which assumes we already have a hashref"
David Christensen <[email protected]> Mon, 14 Nov 2016 15:03:04 +0000
| Newsgroups | gmane.comp.web.interchange.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 93fa3c59759754bb2b189b7071cc3d65cd986c3e Author: David Christensen <[email protected]> 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}