diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index 17c9eab7..743f8fd1 100644 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -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'), ); } diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index d22118e9..0f9ac0fb 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -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()) {