Created
April 24, 2014 08:51
-
-
Save TheoBrigitte/11247032 to your computer and use it in GitHub Desktop.
Commerce RMA patch fixing order reference field bundle restriction, commerce_customer_rma field entities restriction. Apply on f382cb06edbb086c0bb5960e1d5536b9c6019550
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/return/commerce_return.install b/modules/return/commerce_return.install | |
--- a/modules/return/commerce_return.install | |
+++ b/modules/return/commerce_return.install | |
@@ -267,11 +267,6 @@ function commerce_return_configure_return_type($type = 'commerce_return') { | |
'settings' => array( | |
'handler' => 'base', | |
'target_type' => 'commerce_order', | |
- 'handler_settings' => array( | |
- 'target_bundles' => array( | |
- 'commerce_order' => 'commerce_order' | |
- ), | |
- ), | |
), | |
'field_name' => 'commerce_order_reference', | |
'type' => 'entityreference', | |
diff --git a/modules/return/commerce_return.module b/modules/return/commerce_return.module | |
--- a/modules/return/commerce_return.module | |
+++ b/modules/return/commerce_return.module | |
@@ -252,7 +252,7 @@ function commerce_return_configure_customer_profile_type($customer_profile_type, | |
'field_name' => $field_name, | |
'type' => 'commerce_customer_profile_reference', | |
'cardinality' => 1, | |
- 'entity_types' => array('commerce_return'), | |
+ 'entity_types' => array('commerce_order', 'commerce_return'), | |
'translatable' => FALSE, | |
'settings' => array( | |
'profile_type' => $customer_profile_type, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment