mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Avoid encoded HTML breadcrumbs
This commit is contained in:
parent
c8dc9a9377
commit
aae6b2b296
@ -53,7 +53,11 @@ class SiteConfig extends DataObject implements PermissionProvider {
|
||||
*/
|
||||
public function getCMSFields() {
|
||||
|
||||
$groupsMap = Group::get()->map('ID', 'Breadcrumbs')->toArray();
|
||||
$groupsMap = array();
|
||||
foreach(Group::get() as $group) {
|
||||
// Listboxfield values are escaped, use ASCII char instead of »
|
||||
$groupsMap[$group->ID] = $group->getBreadcrumbs(' > ');
|
||||
}
|
||||
asort($groupsMap);
|
||||
|
||||
$fields = new FieldList(
|
||||
|
@ -1978,7 +1978,11 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
* @return FieldList
|
||||
*/
|
||||
public function getSettingsFields() {
|
||||
$groupsMap = Group::get()->map('ID', 'Breadcrumbs')->toArray();
|
||||
$groupsMap = array();
|
||||
foreach(Group::get() as $group) {
|
||||
// Listboxfield values are escaped, use ASCII char instead of »
|
||||
$groupsMap[$group->ID] = $group->getBreadcrumbs(' > ');
|
||||
}
|
||||
asort($groupsMap);
|
||||
|
||||
$fields = new FieldList(
|
||||
|
Loading…
Reference in New Issue
Block a user