Skip to content

Commit

Permalink
BUG Retain page search state on list view actions (fixes #7648)
Browse files Browse the repository at this point in the history
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
chillu committed Jul 13, 2012
1 parent b74178e commit 84ad9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/CMSMain.php
Expand Up @@ -715,7 +715,7 @@ public function ListViewForm() {
}
},
'getTreeTitle' => function($value, &$item) use($controller) {
return '<a class="cms-panel-link" href="' . singleton('CMSPageEditController')->Link('show') . '/' . $item->ID . '">' . $item->TreeTitle . '</a>';
return '<a class="action-detail" href="' . singleton('CMSPageEditController')->Link('show') . '/' . $item->ID . '">' . $item->TreeTitle . '</a>';
}
));

Expand Down

0 comments on commit 84ad9b5

Please sign in to comment.