[FIX] Fix QWeb default dict extend

bzr revid: fme@openerp.com-20120117215542-2j31xq9iovu2z0cv
This commit is contained in:
Fabien Meghazi
2012-01-17 22:55:42 +01:00
parent 182c88b4fb
commit ad3604737d
+1 -1
View File
@@ -329,7 +329,7 @@ QWeb2.Engine = (function() {
" return r.join('');";
},
render : function(template, dict) {
QWeb2.tools.extend(dict, this.default_dict);
QWeb2.tools.extend(dict || {}, this.default_dict);
/*if (this.debug && window['console'] !== undefined) {
console.time("QWeb render template " + template);
}*/