aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2015-08-21 11:00:49 +0200
committerJeremy Benoist <j0k3r@users.noreply.github.com>2015-08-21 11:00:49 +0200
commit78f66dcc527943e2ebb7e58108e3a5bb257f75b5 (patch)
treeb25f9560bdefc5e48a1f7821a77f1f818235f4a8
parent109d67dbb16478f927c3d6a46ab61ea9994aafae (diff)
parentc937de34433c14adcec82a0164730a99859d37c3 (diff)
downloadwallabag-78f66dcc527943e2ebb7e58108e3a5bb257f75b5.tar.gz
wallabag-78f66dcc527943e2ebb7e58108e3a5bb257f75b5.tar.zst
wallabag-78f66dcc527943e2ebb7e58108e3a5bb257f75b5.zip
Merge pull request #1389 from wallabag/v2-fix-duplicate
remove dead code
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index dc399b8a..b6a68963 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -201,29 +201,6 @@ class EntryController extends Controller
201 'currentPage' => $page, 201 'currentPage' => $page,
202 ) 202 )
203 ); 203 );
204
205 if ($request->query->has($form->getName())) {
206 // manually bind values from the request
207 $form->submit($request->query->get($form->getName()));
208
209 // build the query from the given form object
210 $this->get('lexik_form_filter.query_builder_updater')->addFilterConditions($form, $filterBuilder);
211 }
212
213 $pagerAdapter = new DoctrineORMAdapter($filterBuilder->getQuery());
214 $entries = new Pagerfanta($pagerAdapter);
215
216 $entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
217 $entries->setCurrentPage($page);
218
219 return $this->render(
220 'WallabagCoreBundle:Entry:entries.html.twig',
221 array(
222 'form' => $form->createView(),
223 'entries' => $entries,
224 'currentPage' => $page,
225 )
226 );
227 } 204 }
228 205
229 /** 206 /**