Skip to content
Snippets Groups Projects
Commit 9eba3805 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2059003 by vijaycs85, dawehner: Remove try/catch around getRequest() in...

Issue #2059003 by vijaycs85, dawehner: Remove try/catch around getRequest() in DisplayPluginBase::getHandlers().
parent 4f3a8301
No related branches found
No related tags found
No related merge requests found
......@@ -901,14 +901,8 @@ public function getHandlers($type) {
// If this is during form submission and there are temporary options
// which can only appear if the view is in the edit cache, use those
// options instead. This is used for AJAX multi-step stuff.
// @todo Remove dependency on Request object
// https://drupal.org/node/2059003.
try {
if ($this->view->getRequest()->request->get('form_id') && isset($this->view->temporary_options[$type][$id])) {
$info = $this->view->temporary_options[$type][$id];
}
}
catch (DependencyInjectionRuntimeException $e) {
if ($this->view->getRequest()->request->get('form_id') && isset($this->view->temporary_options[$type][$id])) {
$info = $this->view->temporary_options[$type][$id];
}
if ($info['id'] != $id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment