Browse Source

[FIX] accessing undefined variable

pull/4/head
Holger Brunn 11 years ago
parent
commit
f7824ab974
  1. 2
      web_ckeditor4/static/src/js/web_ckeditor4.js

2
web_ckeditor4/static/src/js/web_ckeditor4.js

@ -52,7 +52,7 @@ openerp.web_ckeditor4 = function(openerp)
{
_.each(e.data.definition.contents, function(element)
{
if(element.filebrowser!='uploadButton')
if(!element || element.filebrowser!='uploadButton')
{
return
}

Loading…
Cancel
Save