Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Fix code which assumes we already have a hashref"
As per interchange-users discussion.

This reverts commit 847ef1d.
  • Loading branch information
David Christensen committed Nov 14, 2016
1 parent 8de8b06 commit 93fa3c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Vend/Data.pm
Expand Up @@ -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}
Expand Down

0 comments on commit 93fa3c5

Please sign in to comment.