Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Price
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2017 at 05:00 UTC
Updated:
19 Jan 2017 at 10:14 UTC
Jump to comment: Most recent
Comments
Comment #2
skyredwangLooks like there are two bugs:
1. adjustment field shouldn't pass to price/number validation when there is nothing/type selected
2. It seems #2684713: WSOD if price amount is NULL still exist, when adjustment field amount is left empty, when "apply order adjustment" is chosen, but the amount is empty. Therefore, WSOD.
Comment #3
steveoliver commented@skyred, See #2840134: Rewrite AdjustmentDefaultWidget to use #ajax.
Comment #4
skyredwangI thought
But, when I create a new price field, the settings page still throw the same error, so I believe something in #2684713: WSOD if price amount is NULL is still not fixed.
Comment #5
skyredwang@steveoliver referenced the '_none' bug in adjustment, this issue is used to track the null bug in Pricing.
Comment #6
bojanz commentedReproduced this. First time it fails and converts NULL to 0, second time it works cause 0 is a value.
This is coming from the commerce_number form element, and it actually prevents us from saving an empty price.
Doing a test run with the fix in https://travis-ci.org/drupalcommerce/commerce/jobs/189036362.
Comment #8
bojanz commentedOkay, we now support truly-empty values again.