Skip to content

Commit 71a83a1

Browse files
committed
Merge branch 'develop'
2 parents 51d7ff9 + d3eb376 commit 71a83a1

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
## 2.0.1
2+
* Enable immediate update of the feature table in the data manager ([PR#130](https://github.com/mapbender/mapbender-digitizer/pull/130))
3+
14
## 2.0.0
2-
* Remove bug that allowed a feature to revert to a status it had before the last save. ([PR#123] https://github.com/mapbender/mapbender-digitizer/pull/123)
5+
* Remove bug that allowed a feature to revert to a status it had before the last save. ([PR#123](https://github.com/mapbender/mapbender-digitizer/pull/123))
36
* Prevent Draw Donut On Non-Digitizer Features ([PR#120](https://github.com/mapbender/mapbender-digitizer/pull/120))
47
* Prevent self intersection of polygons not only on modification, but on creation as well ([PR#118](https://github.com/mapbender/mapbender-digitizer/pull/118))
58
* Allow leaving modification mode on pressing escape ([PR#118](https://github.com/mapbender/mapbender-digitizer/pull/118))

src/Mapbender/DataManagerBundle/Resources/public/dataManager.element.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@
367367
* @private
368368
*/
369369
_afterSave: function(schema, dataItem, originalId, responseData) {
370-
this._replaceItemData(schema, dataItem, responseData.dataItem);
370+
if (responseData.dataItem) {
371+
this._replaceItemData(schema, dataItem, responseData.dataItem);
372+
}
371373
if (!originalId) {
372374
// new item
373375
this.tableRenderer.addRow(dataItem, true);
@@ -432,7 +434,7 @@
432434
* @private
433435
*/
434436
_replaceItemData: function(schema, dataItem, newValues) {
435-
Object.assign(dataItem.properties, newValues);
437+
Object.assign(dataItem.properties, newValues.properties);
436438
},
437439
/**
438440
* Open edit feature dialog
@@ -731,7 +733,7 @@
731733
options_.data = JSON.stringify(data);
732734
}
733735
this.$loadingIndicator_.css({opacity: 1});
734-
return this.decorateXhr_($.ajax(options_, this.$loadingIndicator_));
736+
return this.decorateXhr_($.ajax(options_), this.$loadingIndicator_);
735737
},
736738
decorateXhr_: function(jqXhr, $loadingIndicator) {
737739
if ($loadingIndicator) {

0 commit comments

Comments
 (0)