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).
This commit is contained in:
Ingo Schommer 2012-07-13 12:15:25 +02:00
parent b74178e7fd
commit 84ad9b55f0

View File

@ -715,7 +715,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
}
},
'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>';
}
));