Fix autocompletion in Security Admin

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@47949 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-01-14 00:51:35 +00:00
parent 2259c8f6d9
commit 88af8d89c1
2 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,7 @@ abstract class LeftAndMain extends Controller {
Requirements::css('sapphire/css/Form.css');
Requirements::javascript('cms/javascript/MemberList.js');
// Requirements::javascript('cms/javascript/MemberList.js');
Requirements::javascript('cms/javascript/ForumAdmin.js');
Requirements::javascript('cms/javascript/SideTabs.js');
Requirements::javascript('cms/javascript/TaskList.js');

View File

@ -111,6 +111,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
public function autocomplete() {
$fieldName = $this->urlParams['ID'];
$fieldVal = $_REQUEST[$fieldName];
$result = '';
$matches = DataObject::get("Member","$fieldName LIKE '" . addslashes($fieldVal) . "%'");
if($matches) {