@@ -108,10 +108,11 @@ public function indexAction()
108108 $ this ->addControl ($ limitControl );
109109 $ this ->addControl ($ viewModeSwitcher );
110110 $ this ->addControl ($ searchBar );
111- $ continueWith = $ this ->createContinueWith (Links::servicesDetails (), $ searchBar );
112111
113112 $ results = $ services ->execute ();
114113
114+ $ continueWith = $ this ->createContinueWith (Links::servicesDetails (), $ searchBar , $ results ->hasResult ());
115+
115116 if ($ viewModeSwitcher ->getViewMode () === 'tabular ' ) {
116117 $ serviceList = (new ServiceItemTable ($ results , ServiceItemTable::applyColumnMetaData ($ services , $ columns )))
117118 ->setSort ($ sortControl ->getSort ());
@@ -279,7 +280,6 @@ public function gridAction()
279280 $ this ->addControl ($ problemToggle );
280281 $ this ->addControl ($ sortControl );
281282 $ this ->addControl ($ searchBar );
282- $ continueWith = $ this ->createContinueWith (Links::servicesDetails (), $ searchBar );
283283
284284 $ pivotFilter = $ problemToggle ->isChecked () ?
285285 Filter::equal ('service.state.is_problem ' , 'y ' ) : null ;
@@ -316,6 +316,7 @@ public function gridAction()
316316 $ this ->view ->pivotData = $ pivotData ;
317317 $ this ->view ->pivotHeader = $ pivotHeader ;
318318
319+ $ continueWith = $ this ->createContinueWith (Links::servicesDetails (), $ searchBar , ! empty ($ pivotData ));
319320 /** Preserve filter and params in view links (the `BaseFilter` implementation for view scripts -.-) */
320321 $ this ->view ->baseUrl = Url::fromRequest ()
321322 ->onlyWith ([
0 commit comments