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

8.0.x
Alex Pott 2014-07-18 18:29:11 +01:00
parent 4f3a83018f
commit 9eba380589
1 changed files with 2 additions and 8 deletions

View File

@ -901,14 +901,8 @@ abstract class DisplayPluginBase extends PluginBase {
// 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) {