move hasAttachments

This commit is contained in:
Andy Gup 2015-06-17 13:23:29 -06:00
parent 616fb671ae
commit 1a79b3e214

View File

@ -784,6 +784,11 @@ define([
featureCollections: featureCollectionsArray
};
// THIS IS A HACK.
// There is a bug in JS API 3.11+ when you create a feature layer from a featureCollectionObject
// the hasAttachments property does not get properly repopulated.
layer.hasAttachments = featureCollection.featureLayerCollection.layerDefinition.hasAttachments;
// If the featureCollectionsObject already exists
if(success){
var count = 0;
@ -798,7 +803,7 @@ define([
// If we have a new feature layer then add it to the featureCollections array
if(count === 0) {
result.featureCollections.push(featureCollectionsArray);
result.featureCollections.push(featureCollection);
}
}
// If it does not exist then we need to add a featureCollectionsObject