Closed (fixed)
Project:
Commerce Features
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2012 at 19:14 UTC
Updated:
16 Oct 2013 at 10:40 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
BassistJimmyJam commentedLooks like my export was missing "'module' => 'commerce_custom_line_items'" from the line item type definition. Adding it resolved the override. Not sure where it went missing, but it may have been exported for an older patch of the line items type export than what was actually committed.
Comment #2
caktux commentedI'm also having this problem but using commerce_custom_product, and it is included in the dependencies. The diff shows an empty array and not FALSE, and reverting creates an empty line item type.
Comment #3
bojanz commented@caktux
Can you attach your feature (or at least the relevant parts)? Also, a screenshot of the diff screen?
Comment #4
caktux commentedMais bien sur!
Comment #5
fabianx commentedThis problem is two-fold:
a) Things never get written to the Database, because the 'type' is not set and drupal_write_record gives an error.
b) Things never get written to the Database, because commerce_features implements commerce_features_commerce_line_item_type_info_alter
This is wrong.
Things need to live in the database for this to work.
To fix this do:
- Remove commerce_features_commerce_line_item_type_info_alter completely
Apply the following pseudo-patch:
Real patch coming ...
Comment #6
fabianx commentedSetting status to critical. This is unusable without these fixes.
Comment #7
fabianx commentedIssue #1450910: Fix export of line items.
* Remove commerce_features_commerce_line_item_type_info_alter hook. This
prevented reverting the feature and write to DB.
* Add type info to $line_item_type to make drupal_write_record working.
This fixes three bugs:
* Line items show as overridden on re-export.
* Line items are removed from feature on re-export (on fresh site).
* Error while reverting feature.
Comment #8
fabianx commentedFWIW,
I work-arounded this for now for me by implementing:
and adding the type key statically to my feature. (which shows up as overridden but I can live with that)
Comment #9
aschiwi commentedI can confirm this problem. @Fabianx: Your patch fixes this problem for us. The line item comes in as expected and the feature stays clean. Thanks for the patch.
Comment #10
fastangel commentedThe patch of #7 work for me but the provisional solution of #8 not :(
Comment #11
vasikeindeed the #7's patch seems to work.
there's also a related issue about this : #1919014: Unable to enable module using latest versions of required modules..
the patch there no more needed if this patch is commited.
Comment #12
bojanz commentedCommitted, thanks!
Comment #14
Lloyd_87 commentedHi,
sorry to reopen an old thread, but i too am having the problem above. could you possibly assist.
thanks