Commit 01d32210 authored by alexpott's avatar alexpott

Issue #2336483 by er.pushpinderrana | tim.plunkett: Replace Views $form_state...

Issue #2336483 by er.pushpinderrana | tim.plunkett: Replace Views $form_state usage of '#page_title' with 'page_title'.
parent c0a7453a
......@@ -88,7 +88,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
if (isset($bases[$view->get('base_table')])) {
$page_title .= ' (' . $bases[$view->get('base_table')]['title'] . ')';
}
$form_state->set('#page_title', $page_title);
$form_state->set('page_title', $page_title);
$view->cacheSet();
}
......
......@@ -164,7 +164,7 @@ public function getForm(ViewStorageInterface $view, $display_id, $js) {
$response->addCommand(new CloseModalDialogCommand());
$response->addCommand(new Ajax\ShowButtonsCommand(!empty($view->changed)));
$response->addCommand(new Ajax\TriggerPreviewCommand());
if ($page_title = $form_state->get('#page_title')) {
if ($page_title = $form_state->get('page_title')) {
$response->addCommand(new Ajax\ReplaceTitleCommand($page_title));
}
}
......
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