Skip to content

Instantly share code, notes, and snippets.

@bartvde
Created November 16, 2011 17:44
Show Gist options
  • Save bartvde/1370786 to your computer and use it in GitHub Desktop.
Save bartvde/1370786 to your computer and use it in GitHub Desktop.
fm_diff
diff --git a/src/script/plugins/FeatureManager.js b/src/script/plugins/FeatureManager.js
index f1ee3ff..1e18616 100644
--- a/src/script/plugins/FeatureManager.js
+++ b/src/script/plugins/FeatureManager.js
@@ -408,7 +408,8 @@ gxp.plugins.FeatureManager = Ext.extend(gxp.plugins.Tool, {
this.target.on("beforelayerselectionchange", this.setLayer, this);
}
if (this.layer) {
- this.target.createLayerRecord(this.layer, this.setLayer, this);
+ var config = Ext.apply({}, this.layer);
+ this.target.createLayerRecord(config, this.setLayer, this);
}
this.on("layerchange", this.setSchema, this);
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment