mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
25ac72ee22
commit
291de8d283
@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user