From 7063547b58d01c15acc935b19631d6deba04d970 Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Wed, 13 Aug 2008 23:57:53 +0000 Subject: [PATCH] API CHANGE: Allow DataObject searchablefields to be decorated with updateSearchableFields API CHANGE: Allow Group CMS fields to be decorated with updateCMSFields API CHANGE: TableListField utility links no longer have target=_blank git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60665 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/DataObject.php | 2 ++ security/Group.php | 2 ++ templates/TableListField.ss | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index c8723ba62..f0ad24645 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -2396,6 +2396,8 @@ class DataObject extends ViewableData implements DataObjectInterface { } } $fields = $rewrite; + + $this->extend('updateSearchableFields', $fields); return $fields; } diff --git a/security/Group.php b/security/Group.php index b930ddfe5..24ac62e81 100644 --- a/security/Group.php +++ b/security/Group.php @@ -105,6 +105,8 @@ class Group extends DataObject { $fields->push($idField = new HiddenField("ID")); + $this->extend('updateCMSFields', $fields); + return $fields; } diff --git a/templates/TableListField.ss b/templates/TableListField.ss index 6681b0c4d..91d6ca07b 100755 --- a/templates/TableListField.ss +++ b/templates/TableListField.ss @@ -75,7 +75,7 @@
<% control Utility %> - $Title + $Title <% end_control %>
\ No newline at end of file