Skip to content
This repository
Browse code

BUG Retain page search state on list view actions (fixes #7648)

The ".action-detail" link behaviour overloads GridField's
showDetailForm() method, which in turn appends any query params
to the URL (including the existing search params).
  • Loading branch information...
commit 84ad9b55f0ce1e664d8fb4d8213939ef637f43e9 1 parent b74178e
Ingo Schommer authored July 13, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  code/controllers/CMSMain.php
2  code/controllers/CMSMain.php
@@ -715,7 +715,7 @@ public function ListViewForm() {
715 715
 				}
716 716
 			},
717 717
 			'getTreeTitle' => function($value, &$item) use($controller) {
718  
-				return '<a class="cms-panel-link" href="' . singleton('CMSPageEditController')->Link('show') . '/' . $item->ID . '">' . $item->TreeTitle . '</a>';
  718
+				return '<a class="action-detail" href="' . singleton('CMSPageEditController')->Link('show') . '/' . $item->ID . '">' . $item->TreeTitle . '</a>';
719 719
 			}
720 720
 		));
721 721
 		

0 notes on commit 84ad9b5

Please sign in to comment.
Something went wrong with that request. Please try again.