On 08/11/16 08:32, David Christensen wrote:
> Fix code which assumes we already have a hashref
> + $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;
This does not look like it was broken before, it certainly did not
assume that we had a hashref as it specifically tested for it in the if
statement.
Peter
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
> Fix code which assumes we already have a hashref
> + $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;
This does not look like it was broken before, it certainly did not
assume that we had a hashref as it specifically tested for it in the if
statement.
Peter
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users