Skip to content

Commit

Permalink
Merge pull request #9 from Learnosity/LRN-8473
Browse files Browse the repository at this point in the history
[BUG] Fix Data API requestRecursive method array merge
  • Loading branch information
gonzalozawa committed Mar 2, 2016
2 parents 648559e + c8dbc0a commit 7927a8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LearnositySDK/Request/DataApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public JsonObject requestRecursive(string url, JsonObject securityPacket, string
/// <returns>Instance of the Remote class</returns>
private JsonObject handleRequestRecursive(string url, JsonObject securityPacket, string secret, JsonObject requestPacket = null, string action = null, ProcessData callback = null)
{
JsonObject response = new JsonObject();
JsonObject response = new JsonObject(true);
JsonObject data, meta;
Remote request;
int recursion = 0;
Expand All @@ -139,7 +139,7 @@ private JsonObject handleRequestRecursive(string url, JsonObject securityPacket,
}
else
{
response = Tools.array_merge(response, data);
response = Tools.array_merge(response, data.getJsonObject("data"));
}
}
else {
Expand Down

0 comments on commit 7927a8e

Please sign in to comment.