Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Commerce
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2016 at 12:59 UTC
Updated:
27 Jul 2016 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pontus_nilssonAdding patch.
Comment #3
pontus_nilssonComment #4
agoradesign commentedbojanz committed this a few days ago: http://cgit.drupalcode.org/commerce/commit/?id=3fb6ec8
Your problem is obivously resulting from that change -> looks like, that $values['target_id'] can be a string as well as an array, so both cases must be considered. Why this can be different, is another question. I'm sure bojanz knows more about that
Comment #5
bojanz commentedWe need to expand our tests to cover both single and multiple selections, config and content entities.
We currently test only for multiple content entities. The fix was to make config entities work as well.
Comment #6
bojanz commentedOur product page is broken.
Waiting for the fix to pass Travis: https://travis-ci.org/drupalcommerce/commerce/jobs/144440669
Looked into the tests, they already cover single and multiple cardinality fields. It's a mystery why they aren't failing here.
Comment #8
bojanz commentedPushed the reworked fix.