Mercurial > lada > lada-client
comparison app/controller/grid/Status.js @ 1023:3e9ff7786d2c
Do not Copy the StatusWert if it equals 0
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 09 Feb 2016 09:48:57 +0100 |
parents | 23bfcbdb4527 |
children | 2329acae1705 |
comparison
equal
deleted
inserted
replaced
1020:00da72171de3 | 1023:3e9ff7786d2c |
---|---|
107 // clone the status | 107 // clone the status |
108 var record = recentStatus.copy() | 108 var record = recentStatus.copy() |
109 } | 109 } |
110 | 110 |
111 record.set('id', null); | 111 record.set('id', null); |
112 if (record.get('statusWert') === 0) { | |
113 record.set('statusWert', null); | |
114 } | |
115 | |
112 } else { | 116 } else { |
113 //create a new one | 117 //create a new one |
114 var record = Ext.create('Lada.model.Status', { | 118 var record = Ext.create('Lada.model.Status', { |
115 messungsId: button.up('statusgrid').recordId | 119 messungsId: button.up('statusgrid').recordId |
116 }); | 120 }); |