Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Order
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Oct 2011 at 16:28 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent
Comments
Comment #1
rszrama commentedPart of this was a duplicate that I detected earlier today of: #1280894-9: Better formatting for product_reference multi-value field wrappers
I'm running the Order admin test locally now. Not sure why a test would suddenly fail to change a currency. :-/
Comment #2
rszrama commentedAnd, in fact, I'm not getting any fails in the Order UI tests locally. But that could just be because of the way the test is using randomization. We really need to go through and remove all elements of randomization when we're trying to compare values - as is, we leave open the possibility for the random "updated" value to be the same as the first. If we know we want to test a different value, we should just hard code values.
The actual fix involved changing the logic in the validate handler for the line item manager so that it saves an updated price if just the currency changes. Right now it only saves it if the amount changes.
Commit: http://drupalcode.org/project/commerce.git/commitdiff/25061da
Comment #3
rfayAnd we have passing tests! http://qa.drupal.org/pifr/test/130769
YAY!
Comment #4
rfayAnd FIFTY (50) queued commerce patches now :-)