-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for filter with commerce product #1010
base: 7.x-2.x
Are you sure you want to change the base?
Conversation
@@ -1146,6 +1147,10 @@ protected function getReferencedId($value, ResourceFieldInterface $resource_fiel | |||
$target_entity_type = $field_info['settings']['target_type']; | |||
$bundles = empty($field_info['settings']['handler_settings']['target_bundles']) ? array() : $field_info['settings']['handler_settings']['target_bundles']; | |||
} | |||
elseif (!empty($field_info['type']) && $field_info['type'] == 'commerce_product_reference') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this duplicated code? If so, we should have an ||
condition in the if
clause instead of duplicating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right!! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean duplicate code
No description provided.