Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Product
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2012 at 14:26 UTC
Updated:
12 Oct 2012 at 20:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
rszrama commentedI'm guessing this affects all our entity types then; just need to look in the create method of our controllers to fix 'em.
I don't think anything in Commerce itself is so finicky as to expect NULL vs. ''. I wonder why the code reading this stuff isn't just using empty(). : ?
Comment #2
rszrama commentedGet 'em, test bot.
Comment #4
rszrama commentedMeh, that was a silly assertion.
Comment #5
rszrama commentedI don't see any place in Commerce where we make any assertions against IDs stronger than ==, so NULL or '' won't matter. Going to go ahead and commit the patch in #4.