mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: Check for empty
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96441 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
904fcf02d0
commit
3a63f1ab52
@ -63,6 +63,9 @@ WidgetAreaEditorClass.prototype = {
|
||||
this.name = this.getAttribute('name');
|
||||
|
||||
var monkeyWith = function(widgets, name) {
|
||||
if (!widgets) {
|
||||
return;
|
||||
}
|
||||
for(var i = 0; i < widgets.length; i++) {
|
||||
widget = widgets[i];
|
||||
if (!widget.getAttribute('rewritten') && (widget.id || widget.name)) {
|
||||
|
Loading…
Reference in New Issue
Block a user