In short, while importing Features-exported vocabularies, Drupal complains about a "machine_name" property of an object not being found on a non-object. This patch casts the array that was exported into an object, then also adds a "machine_name" property to the object.
Secondly, when importing Features-exported terms, Drupal complains about the variable "$term" not being found. This is because of a @TODO left to convert the $data array into an object. This patch correctly casts $data into $term as an object, and also removes the last line of the method as per another @TODO left regarding http://drupal.org/node/860442
Comment | File | Size | Author |
---|---|---|---|
#6 | uuid_features-1205602-3-drush.patch | 1.19 KB | jec006 |
#3 | uuid_features-1205602-3.patch | 1.2 KB | fabsor |
20110630-uuid_features--vocabularies--terms-0.patch | 1.34 KB | evNN | |
Comments
Comment #1
Shadlington CreditAttribution: Shadlington commentedYou should be making patches from the directory of the module you're patching, rather than from the root of your drupal install.
This fixed the problems I was having (see #1207846: Various issues when using terms in features)
Thanks!
Comment #2
evNN CreditAttribution: evNN commentedOkay, I'll keep that in mind for the future. Thanks muchly, glad to help!
Comment #3
fabsor CreditAttribution: fabsor commentedHere is a reroll of the patch above with no functional differences except that it is rolled from the module directory.
Comment #4
jonhattanit works
Comment #5
manu.zueger CreditAttribution: manu.zueger commentedit works! can you please commit it?
Comment #6
jec006 CreditAttribution: jec006 commentedsame as in 3 but in a format that will work with drush make.
Comment #7
Jeffrey C. CreditAttribution: Jeffrey C. commenteduuid_vocabulary.features.inc has already been removed in a previous commit. Please rework.