From 59a12084d3a0c2bf84aa924f83a3d2247da73fe2 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Mon, 15 Jan 2018 13:25:25 +0000 Subject: [PATCH] Issue #2936457 by Berdir, larowlan: views_post_update_filter_placeholder_text() can result in errors in filter plugins due to incomplete definition --- core/modules/views/views.post_update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/views/views.post_update.php b/core/modules/views/views.post_update.php index 4eaa5824aa15..297363dc40f5 100644 --- a/core/modules/views/views.post_update.php +++ b/core/modules/views/views.post_update.php @@ -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'] = ''; -- GitLab