mirror of https://github.com/OCA/web.git
[FIX] accessing undefined variable
parent
bcf0534907
commit
f7824ab974
|
@ -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…
Reference in New Issue