Commit fb282624 authored by codycraven's avatar codycraven
Browse files

Issue #1507632 by codycraven, hass: Display select option for views that do...

Issue #1507632 by codycraven, hass: Display select option for views that do not have a human name set.
parent af5bda6e
Taxonomy Display 7.x-1.x, YYYY-MM-DD
------------------------------------
Issue #1507632 by codycraven, hass: Display select option for views that do not
have a human name set.
Issue #1564806 by hass: Fix misspelled function name.
Issue #1542306 by hass: Fix strings missing translate function wrapper.
......
......@@ -72,7 +72,9 @@ class TaxonomyDisplayAssociatedDisplayHandlerViews extends TaxonomyDisplayAssoci
$select_options = array();
foreach ($views as $view) {
if (views_view_is_enabled($view)) {
$select_options[$view->name] = $view->human_name;
// #1507632 It has been reported that some views have empty human names,
// so we add a condition and use the view name if human is unavailable.
$select_options[$view->name] = empty($view->human_name) ? $view->name : $view->human_name;
}
}
$form['view'] = array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment