diff options
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index c4975ae6..b73e9eec 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -220,29 +220,6 @@ class EntryController extends Controller | |||
220 | 'currentPage' => $page, | 220 | 'currentPage' => $page, |
221 | ) | 221 | ) |
222 | ); | 222 | ); |
223 | |||
224 | if ($request->query->has($form->getName())) { | ||
225 | // manually bind values from the request | ||
226 | $form->submit($request->query->get($form->getName())); | ||
227 | |||
228 | // build the query from the given form object | ||
229 | $this->get('lexik_form_filter.query_builder_updater')->addFilterConditions($form, $filterBuilder); | ||
230 | } | ||
231 | |||
232 | $pagerAdapter = new DoctrineORMAdapter($filterBuilder->getQuery()); | ||
233 | $entries = new Pagerfanta($pagerAdapter); | ||
234 | |||
235 | $entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage()); | ||
236 | $entries->setCurrentPage($page); | ||
237 | |||
238 | return $this->render( | ||
239 | 'WallabagCoreBundle:Entry:entries.html.twig', | ||
240 | array( | ||
241 | 'form' => $form->createView(), | ||
242 | 'entries' => $entries, | ||
243 | 'currentPage' => $page, | ||
244 | ) | ||
245 | ); | ||
246 | } | 223 | } |
247 | 224 | ||
248 | /** | 225 | /** |