mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: Check for empty (from r96441)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102469 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0624cc69ed
commit
e5e3804ce9
@ -64,6 +64,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