Skip to content

Support for filter with commerce product#1010

Open
jmaties wants to merge 3 commits intoRESTful-Drupal:7.x-2.xfrom
carizstudio:7.x-2.x
Open

Support for filter with commerce product#1010
jmaties wants to merge 3 commits intoRESTful-Drupal:7.x-2.xfrom
carizstudio:7.x-2.x

Conversation

@jmaties
Copy link

@jmaties jmaties commented Dec 1, 2017

No description provided.

@jmaties jmaties changed the title Support for commerce product Support for filter with commerce product Dec 1, 2017
$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') {
Copy link
Member

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right!! 👍

Copy link
Author

@jmaties jmaties left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean duplicate code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants