Commit 769ab39e authored by alexpott's avatar alexpott

Issue #2307629 by olli | jhodgdon: Fixed Views UI "Add" dialog - Submit pops...

Issue #2307629 by olli | jhodgdon: Fixed Views UI "Add" dialog - Submit pops you back to same dialog.
parent e7e76661
......@@ -147,6 +147,7 @@ public function getForm(ViewStorageInterface $view, $display_id, $js) {
// Build the new form state for the next form in the stack.
$reflection = new \ReflectionClass($view::$forms[$top[1]]);
$form_state = $reflection->newInstanceArgs(array_slice($top, 3, 2))->getFormState($view, $top[2], $form_state['ajax']);
$form_class = get_class($form_state['build_info']['callback_object']);
$form_state['input'] = array();
$form_path = views_ui_build_form_path($form_state);
......
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