From 3aa7ad3212ee16a1b86859ae35dc98b190b89a73 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 25 Nov 2008 01:56:57 +0000 Subject: [PATCH] Fix incorrect logic in r66544 git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66546 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/SecurityAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index 55619339..8c25d55b 100644 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -83,7 +83,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { $result = ''; // Make sure we only autocomplete on keys that actually exist, and that we don't autocomplete on password - if(!array_key_exists($fieldName, singleton($this->stat('subitem_class'))->stat('db')) && $fieldName != 'Password') return; + if(!array_key_exists($fieldName, singleton($this->stat('subitem_class'))->stat('db')) || $fieldName == 'Password') return; $matches = DataObject::get($this->stat('subitem_class'),"$fieldName LIKE '" . Convert::raw2sql($fieldVal) . "%'"); if($matches) {