diff --git a/CHANGELOG b/CHANGELOG index 4a6e8abbe0..e30752dfd6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,13 @@ v2.1.0 (XXXX-XX-XX) * removed arangod command line option `--database.remove-on-compacted` +v2.0.1 (XXXX-XX-XX) +------------------- + +* when creating a collection via the web interface, the collection type was always + "document", regardless of the user's choice + + v2.0.0 (2014-03-10) ------------------- diff --git a/js/actions/api-collection.js b/js/actions/api-collection.js index 44104dc91e..e8f93cb397 100644 --- a/js/actions/api-collection.js +++ b/js/actions/api-collection.js @@ -316,7 +316,7 @@ function post_api_collection (req, res) { try { var collection; if (typeof(r.type) === "string") { - if (r.type.toLowerCase() === "edge") { + if (r.type.toLowerCase() === "edge" || r.type === "3") { r.type = arangodb.ArangoCollection.TYPE_EDGE; } } diff --git a/js/apps/system/aardvark/frontend/js/collections/arangoCollections.js b/js/apps/system/aardvark/frontend/js/collections/arangoCollections.js index b7b8c05c94..e68e4056f6 100644 --- a/js/apps/system/aardvark/frontend/js/collections/arangoCollections.js +++ b/js/apps/system/aardvark/frontend/js/collections/arangoCollections.js @@ -272,7 +272,7 @@ data.name = collName; data.waitForSync = wfs; data.isSystem = isSystem; - data.type = collType; + data.type = parseInt(collType, 10); if (shards) { data.numberOfShards = shards; data.shardKeys = keys;