BUGFIX: Ignore elements without a name in change detection.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96785 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-01-12 23:56:36 +00:00
parent 25ac72ee22
commit 291de8d283
2 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
'help' => _t('SecurityAdmin.APPLY_ROLES_HELP', 'Ability to edit the roles assigned to a group. Requires "Access to Security.".'),
'sort' => 0
)
'APPLY_ROLES' => _t('SecurityAdmin.APPLY_ROLES', 'Apply roles to groups'),
);
}

View File

@ -591,8 +591,9 @@ ChangeTracker.prototype = {
var i, element;
for(i=0;element=elements[i];i++) {
// NOTE: TinyMCE coupling
// Ignore mce-generated elements
// Ignore mce-generated elements and elements without a name
if(element.className.substr(0,3) == 'mce') continue;
if(!element.name) continue;
if(!element.isChanged) element.isChanged = this.field_changed;
if(!this.changeDetection_fieldsToIgnore[element.name] && element.isChanged()) {