[FIX] implicit global and duplicate local (wow)
authorXavier Morel <xmo@openerp.com>
Wed, 9 Nov 2011 10:34:50 +0000 (11:34 +0100)
committerXavier Morel <xmo@openerp.com>
Wed, 9 Nov 2011 10:34:50 +0000 (11:34 +0100)
bzr revid: xmo@openerp.com-20111109103450-hiy0ooj2b6ay7arq

addons/web/static/src/js/views.js

index 6292840..b23c00f 100644 (file)
@@ -625,8 +625,8 @@ session.web.Sidebar = session.web.Widget.extend({
         var $section = this.sections[code];
 
         if(!$section) {
-            section_id = _.uniqueId(this.element_id + '_section_' + code + '_');
-            var $section = $(session.web.qweb.render("Sidebar.section", {
+            var section_id = _.uniqueId(this.element_id + '_section_' + code + '_');
+            $section = $(session.web.qweb.render("Sidebar.section", {
                 section_id: section_id,
                 name: name,
                 classname: 'oe_sidebar_' + code