From 690cebdccd78e1fabb686f236c171b12b504f608 Mon Sep 17 00:00:00 2001 From: Hayden Smith Date: Wed, 8 Oct 2008 02:00:39 +0000 Subject: [PATCH] Merged from branches/nzct-trunk. Use 'svn log -c -g' for full commit message. Merge includes stability fixes and minor refactor of TableListField and ComplexTableField. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63807 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/GenericDataAdmin.php | 2 +- code/LeftAndMain.php | 2 +- code/SecurityAdmin.php | 2 +- css/GenericDataAdmin.css | 5 ++++- css/cms_right.css | 15 ++++++++++++++- javascript/LeftAndMain.js | 2 +- javascript/LeftAndMain_right.js | 13 ++++++++++++- javascript/SideTabs.js | 3 ++- javascript/TinyMCEImageEnhancement.js | 6 +++--- tests/RestfulServerTest.php | 5 ++++- 10 files changed, 43 insertions(+), 12 deletions(-) diff --git a/code/GenericDataAdmin.php b/code/GenericDataAdmin.php index e979114e..b563afc8 100755 --- a/code/GenericDataAdmin.php +++ b/code/GenericDataAdmin.php @@ -412,7 +412,7 @@ HTML; $result = $tmpItem; } - if(strpos('->', $field) !== false) { + if(strpos($field, '->') !== false) { list ($field, $caster) = explode("->", $field); } diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index dd159faf..0a2414cc 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -1143,4 +1143,4 @@ JS; } -?> \ No newline at end of file +?> diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index f1bc3b2b..49e227e3 100644 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -83,7 +83,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { $fieldVal = $_REQUEST[$fieldName]; $result = ''; - $matches = DataObject::get("Member","$fieldName LIKE '" . addslashes($fieldVal) . "%'"); + $matches = DataObject::get($this->stat('subitem_class'),"$fieldName LIKE '" . addslashes($fieldVal) . "%'"); if($matches) { $result .= "