Commit 14e2ed66 authored by alexpott's avatar alexpott

Issue #2936457 by Berdir, larowlan:...

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

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