Merge pull request #4133 from nimeso/patch-1

This commit is contained in:
Daniel Hensby 2016-08-22 11:52:47 +01:00
commit 229a2b9217
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -1378,7 +1378,12 @@ class Member extends DataObject implements TemplateGlobalProvider {
));
$mainFields->removeByName($self->config()->hidden_fields);
// make sure that the "LastVisited" field exists
// it may have been removed using $self->config()->hidden_fields
if($mainFields->fieldByName("LastVisited")){
$mainFields->makeFieldReadonly('LastVisited');
}
if( ! $self->config()->lock_out_after_incorrect_logins) {
$mainFields->removeByName('FailedLoginCount');