Closed (outdated)
Project:
Bundle Copy
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2012 at 11:09 UTC
Updated:
16 May 2025 at 22:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Cauliflower commentedThis patch should do it.
Comment #2
swentel commentedShould be 'administer field collections'.
Same thing here.
I'll commit when that's ok :)
Comment #3
Cauliflower commentedThis patch has the correct access arguments.
Comment #4
liquidcms commentednot sure if related but both before and after this patch i get this error on import:
Fatal error: Call to undefined method FieldCollectionItemEntity::__set_state() in E:\wamp\www\ctai\sites\all\modules\bundle_copy\bundle_copy.module(317) : eval()'d code on line 1085
\n
however i have also successfully imported node types with collections (even without this patch).
Comment #5
tinker commentedThink you have an error:
$data is not defined. Should it be $bundle?
Comment #6
daffodilsoftware commentedI have created a patch please test it and provide your feedback.
Comment #7
daffodilsoftware commentedHi Cauliflower
Have you tested my patch?
Please provide your feedback so that we can commit this in module
Comment #8
mossy2100I applied the patch, exported a CT with a field collection, then tried to import it (with some field names changed), and got this error:
Fatal error: Call to undefined method FieldCollectionItemEntity::__set_state() in /Users/shaun/Dropbox/Business/Clients/DAFF Biosecurity/sites/biointel.org/www/sites/all/modules/contrib/bundle_copy/bundle_copy.module(297) : eval()'d code on line 894
HTH
Shaun
Comment #9
hawkeye.twolfSame here. Also note that your patch has whitespace errors.
Comment #10
liquidcms commentedi get same error with 2.x-dev
Fatal error: Call to undefined method FieldCollectionItemEntity::__set_state() in E:\wamp\www\ctai\sites\all\modules\bundle_copy\bundle_copy.module(312) : eval()'d code on line 1544
Comment #11
liquidcms commentedand as a quick test i redid export but left out the FC. import then worked fine.
also, this was was 2.x-dev but also with the patch applied.
Comment #12
Anonymous (not verified) commentedI also got the same error with the #6 patch.This patch should do it.
Comment #13
liquidcms commentedwith patch in #12 i still get:
Fatal error: Call to undefined method FieldCollectionItemEntity::__set_state() in E:\wamp\www\ctai\sites\all\modules\bundle_copy\bundle_copy.module(312) : eval()'d code on line 1139
Comment #14
Anonymous (not verified) commentedHi liquidcms,
This patch is with version 7.x-1.x-dev. I forgot to changed the version when I submit the patch.Hope this is the version mistake only.As the patch shows white space errors when I review the code of the module with Coder Module it also shows me white space errors.The white space errors are not due to the #12 patch .
Comment #15
liquidcms commentedare 2.x and 1.x that much different? i applied the patch to 2.x (cleanly) and my export/import test fails as noted above. Doubt it would work with 1.x unless changes are being done to 1.x that are not being done to 2.x (which would be bad).
Comment #16
Anonymous (not verified) commentedHi Liquidcms,
This patch do it for 7.x-2.x-dev branch.The 2.x branch is different from the 1.x branch as I saw it later. The 2.x branch had given the support of Cloning of Content types and Exporting and Importing of Commerce Entity Bundles.
Comment #17
daffodilsoftware commented#16 patch fixed.
Comment #19
saniya commentedHi,
I am using 7.1. I tried to import content types exported from one install and got "Fatal error: Call to undefined method FieldCollectionItemEntity::__set_state() in /sites/all/modules/bundle_copy/bundle_copy.module(298) : eval()'d code on line 7903"
I have applied the patch in comment # 12 but didn't help. Can anyone suggest?
Comment #20
eminencehealthcare commented#16 works for me. Thanks so much.
Comment #21
aaronbauman#16 does not add field collection to bundle_copy's implementation of hook_bundle_copy_info(), so it does not fulfill this request.
Comment #22
aaronbaumanPatch #3 worked to import, as long as I created field collection bundles with matching names prior to importing.
Comment #23
colanIf I understand the history correctly, the fix is in for 7.x-2.x (and it works), but we still need something for 7.x-1.x. I'm updating the status, but please correct it if I'm missing something here.
Comment #24
aangel commentedPatch #16 worked for me nicely.
Comment #25
ruuddrupal commentedPatch in comment #16 works for me too.
Comment #26
aangel commented