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 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 | /** |