[FIX] display 'undefined' in case of falsy graph value rather than empty label
authorXavier Morel <xmo@openerp.com>
Mon, 10 Jun 2013 07:11:51 +0000 (09:11 +0200)
committerXavier Morel <xmo@openerp.com>
Mon, 10 Jun 2013 07:11:51 +0000 (09:11 +0200)
bzr revid: xmo@openerp.com-20130610071151-15lhz4o95tl4clak

1  2 
addons/web_graph/static/src/js/graph.js

@@@ -365,10 -366,10 +366,10 @@@ instance.web_graph.GraphView = instance
          }).then(function() {
              var res = {
                  'data': result,
-                 'ticks': _.map(ticks, function(el, key) { return [el, key] })
+                 'ticks': _.map(ticks, function(el, key) { return [el, key || _t("Undefined")] })
              };
              return res;
 -        });
 +        }));
      },
  
      // Render the graph and update menu styles