Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Rules integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2013 at 08:28 UTC
Updated:
28 Oct 2013 at 22:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
jonhattanComment #2
rszrama commentedI noticed this the other day, too. What about using is_null() instead?
Comment #3
jonhattanI think the value I saw was an empty string, not a null. I'll check and confirm tomorrow.
Comment #4
MD3 commentedThis caught my attention because I was just reading #1658788: Stop add to cart based on rules and #1909098: Allow rules to disable add to cart form where one of the suggestions to stop an item from being adding to the cart is to set it's price to 0. In the
commerce_cartfunctioncommerce_cart_product_add()the first check is to see of the priceis_null().Would making these checks match would preserve current functionality?
Comment #5
jonhattan@rszrama I confirm the value isn't NULL, but empty string.
@MD3 I have no idea where
commerce-line-item:commerce-unit-price:amountis validated, but for sure it's not the same piece of code we're dealing here. With or without this patch, NULL is not allowed here anyway.Comment #6
rszrama commentedAlrighty, thanks for checking for me. Committed!