diff app/view/grid/Messung.js @ 950:c7bf0b459074

Fixed some issues when the status is null
author Dustin Demuth <dustin@intevation.de>
date Tue, 03 Nov 2015 14:44:01 +0100
parents 023e622f9551
children b401846e7817
line wrap: on
line diff
--- a/app/view/grid/Messung.js	Mon Nov 02 09:50:41 2015 +0100
+++ b/app/view/grid/Messung.js	Tue Nov 03 14:44:01 2015 +0100
@@ -207,7 +207,7 @@
      */
     updateStatusColumn: function(sstore, record, success, opts) {
         var value = 0;
-        if (sstore.getTotalCount() === 0) {
+        if (sstore.getTotalCount() === 0 || !opts.statusId) {
             value = 0;
         }
         else {

http://lada.wald.intevation.org