Jiten (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-1011492-pan into lp:openerp-web.

Requested reviews:
  Jiten (OpenERP) (jiten-openerp)
  Xavier (Open ERP) (xmo)
Related bugs:
  Bug #1011492 in OpenERP Web: "[charts] dashboard giving traceback"
  https://bugs.launchpad.net/openerp-web/+bug/1011492

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-1011492-pan/+merge/122488
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-1011492-pan/+merge/122488
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-1011492-pan.
=== modified file 'addons/web_graph/static/src/js/graph.js'
--- addons/web_graph/static/src/js/graph.js	2012-08-24 18:27:07 +0000
+++ addons/web_graph/static/src/js/graph.js	2012-09-03 10:35:44 +0000
@@ -142,9 +142,10 @@
     options_bar: function (data) {
         var min = _(data.data).chain()
             .map(function (record) {
-                return _.min(record.data, function (item) {
+                var record_min = _.min(record.data, function (item) {
                     return item[1];
-                })[1];
+                }) || [null, Infinity];
+                return record_min[1];
             }).min().value();
         return {
             bars : {

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to