Only apply allowed asset reference type handling to the View: farm_asset_entityreference_view

This commit is contained in:
Michael Stenta 2017-06-26 09:19:19 -04:00
parent 386e967317
commit b9688b40d3
1 changed files with 5 additions and 0 deletions

View File

@ -452,6 +452,11 @@ function farm_ui_entityreference_view_widget_views_arguments_alter(&$arguments,
* this code successfully sets a contextual filter argument.
*/
// Only apply this to the View: farm_asset_entityreference_view
if ($view->name != 'farm_asset_entityreference_view') {
return;
}
// Figure out what the log type is.
if (!empty($form_state['build_info']['args'][0]->type)) {
$log_type = $form_state['build_info']['args'][0]->type;