Closed (cannot reproduce)
Project:
Commerce Core
Version:
7.x-1.13
Component:
Order
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2017 at 10:58 UTC
Updated:
2 Feb 2017 at 22:59 UTC
Jump to comment: Most recent
Comments
Comment #2
rszrama commentedHonestly, I've never encountered this situation before. I'm not sure what it looks like to reattach a field to a bundle it's been deleted from, but you'd likely need to recreate it using the API to use the same name it had previously. It may still be present with the "deleted" flag set to 1, so maybe you could undelete it? I'd google for "undelete a drupal 7 field" or something similar to see what turns up.
If you can't find it, I recommend posting the question at https://drupal.stackexchange.com.
Comment #3
sjvellenga commentedWhat I ended up doing was looking in the install file for the commerce shipping module, then pasting the code from that to create the field on the order into a php value in a block. Ran the block, then deleted it. The field was successfully recreated. I then had to place the field in the correct place in the displays and it populated back into the outputs (invoice included). I did have to manually fix the data that was lost in the table, but I simply duplicated from the billing field. Not a 100% ideal solution, but a solution.
Comment #4
rszrama commentedWow, congrats for sorting it out!