Commit d4f30732 authored by catch's avatar catch
Browse files

Issue #3356093 by claudiu.cristea: Code duplication in...

Issue #3356093 by claudiu.cristea: Code duplication in MediaLibraryUiBuilder::buildMediaLibraryView()
parent 0b7d095e
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -337,12 +337,6 @@ protected function buildMediaLibraryView(MediaLibraryState $state) {

    $args = [$state->getSelectedTypeId()];

    // Make sure the state parameters are set in the request so the view can
    // pass the parameters along in the pager, filters etc.
    $request = $view_executable->getRequest();
    $request->query->add($state->all());
    $view_executable->setRequest($request);

    $view_executable->setDisplay($display_id);
    $view_executable->preExecute($args);
    $view_executable->execute($display_id);