Mercurial > lada > lada-client
comparison app/controller/grid/Status.js @ 1027:859e2e9859cd
Fixed an issue concerning the selection of status
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 12 Feb 2016 17:23:21 +0100 |
parents | 2329acae1705 |
children | 8e579acfe0b1 |
comparison
equal
deleted
inserted
replaced
1026:360884265471 | 1027:859e2e9859cd |
---|---|
127 var record = recentStatus.copy() | 127 var record = recentStatus.copy() |
128 } | 128 } |
129 | 129 |
130 record.set('id', null); | 130 record.set('id', null); |
131 if (record.get('statusWert') === 0) { | 131 if (record.get('statusWert') === 0) { |
132 record.set('statusWert', null); | 132 record.set('statusWert', ''); |
133 } | 133 } |
134 | |
135 } else { | 134 } else { |
136 //create a new one | 135 //create a new one |
137 var record = Ext.create('Lada.model.Status', { | 136 var record = Ext.create('Lada.model.Status', { |
138 messungsId: button.up('statusgrid').recordId | 137 messungsId: button.up('statusgrid').recordId |
139 }); | 138 }); |