Permalink
Browse files

fix popup not getting data in assets.html

  • Loading branch information...
Bart van den Eijnden
Bart van den Eijnden committed Mar 24, 2011
1 parent 98b9e8e commit dbbb1e2136b55d4b097465f572fa9ebbcc95226a
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/static/script/app/ParkingManager/AssetEditorPopup.js
@@ -181,12 +181,13 @@ ParkingManager.AssetEditorPopup = Ext.extend(GeoExt.Popup, {
if (this.schema) {
var attributes = {};
this.schema.each(function(r) {
+ var name = r.get("name");
var type = r.get("type");
if (type.match(/^[^:]*:?((Multi)?(Point|Line|Polygon|Curve|Surface|Geometry))/)) {
// exclude gml geometries
return;
}
- attributes[name] = feature.attributes[r.get("name")];
+ attributes[name] = feature.attributes[name];
}, this);
feature.attributes = attributes;
}

0 comments on commit dbbb1e2

Please sign in to comment.