Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In case when entity bundle contains more than one 'office_hours' field the office_hours_feeds_set_target() assign wrong deltas for the second field on feed import (and any further office_hours field inside current entity).
This is because of condition that handles the value of $sv_index static var - the var value is reset to 0 in case when $entity->vid is changed. Need to introduce the same logic for the next office hour field inside the same entity.
Thanks in advance.
Comment | File | Size | Author |
---|---|---|---|
#3 | office_hours_1965966_3_multiple_fields_per_node.patch | 1.22 KB | johnv |
#1 | Fixing-wrong-field-deltas-assignment-on-feeds-import-1965966-1.patch | 1.82 KB | ruslan.muradov |
Comments
Comment #1
ruslan.muradov CreditAttribution: ruslan.muradov commentedHave scratched my head for a while and solved this problem. Here is the patch. Hope it will helps some one else :)
Comment #2
johnvThanks for the patch.
Comment #3
johnvI've made a shorter version. Does it work for you?
Please download today's latest version first, and run update.php!
Comment #4
johnvclearer title.
Comment #5
ruslan.muradov CreditAttribution: ruslan.muradov commented>Does it work for you?
yes @johnv!
>Please download today's latest version first
The 7.x-dev bundle? Still shows to me that it is dated by 2013-Apr-06
Comment #6
johnvPerhaps it needs some time to refresh. Try tomorrow. You can download from git, too.
Comment #7
johnvThis is committed here
Thanks Ruslan.
Comment #8.0
(not verified) CreditAttribution: commentedFixing the description