Issue #2936457 by Berdir, larowlan: views_post_update_filter_placeholder_text() can result in errors in filter plugins due to incomplete definition

8.6.x
Alex Pott 2018-01-15 13:25:25 +00:00
parent 4443678c9e
commit 59a12084d3
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ function views_post_update_filter_placeholder_text() {
foreach ($display['display_options']['filters'] as $filter_name => &$filter) {
// Any of the children of the modified classes will also be inheriting
// the new settings.
$filter_instance = $filter_manager->createInstance($filter['plugin_id']);
$filter_instance = $filter_manager->getHandler($filter);
if ($filter_instance instanceof StringFilter) {
if (!isset($filter['expose']['placeholder'])) {
$filter['expose']['placeholder'] = '';