mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
2259c8f6d9
commit
88af8d89c1
@ -97,7 +97,7 @@ abstract class LeftAndMain extends Controller {
|
|||||||
|
|
||||||
Requirements::css('sapphire/css/Form.css');
|
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/ForumAdmin.js');
|
||||||
Requirements::javascript('cms/javascript/SideTabs.js');
|
Requirements::javascript('cms/javascript/SideTabs.js');
|
||||||
Requirements::javascript('cms/javascript/TaskList.js');
|
Requirements::javascript('cms/javascript/TaskList.js');
|
||||||
|
@ -111,6 +111,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
public function autocomplete() {
|
public function autocomplete() {
|
||||||
$fieldName = $this->urlParams['ID'];
|
$fieldName = $this->urlParams['ID'];
|
||||||
$fieldVal = $_REQUEST[$fieldName];
|
$fieldVal = $_REQUEST[$fieldName];
|
||||||
|
$result = '';
|
||||||
|
|
||||||
$matches = DataObject::get("Member","$fieldName LIKE '" . addslashes($fieldVal) . "%'");
|
$matches = DataObject::get("Member","$fieldName LIKE '" . addslashes($fieldVal) . "%'");
|
||||||
if($matches) {
|
if($matches) {
|
||||||
|
Loading…
Reference in New Issue
Block a user