I was having trouble getting multiple values working with the option set reference field.
I fixed this (for myself) by modifying the function commerce_option_get_sets().
I modified the line:
$sets = entity_load('commerce_option_set', isset($set_id) ? array($set_id) : FALSE);
to reset the entity, like so:
$sets = entity_load('commerce_option_set', isset($set_id) ? array($set_id) : FALSE, array(), TRUE);
I have no idea if this is the right way, i was just totally stoked it worked.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1195744-Allow multiple option sets per product-2.patch | 511 bytes | kbalderson |
Comments
Comment #1
kbalderson commentedComment #2
kbalderson commentedComment #3
hunziker commentedI commit your patch.