From 267c8ba45112205b9d4ece89ee9f394d3bc99773 Mon Sep 17 00:00:00 2001 From: scottashton Date: Wed, 9 Jul 2014 14:43:06 +0200 Subject: [PATCH] minor fixes in gharial and ahuacatl --- js/apps/system/gharial/gharial.js | 2 +- js/server/modules/org/arangodb/ahuacatl.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/apps/system/gharial/gharial.js b/js/apps/system/gharial/gharial.js index 556050492c..5cc072cffc 100644 --- a/js/apps/system/gharial/gharial.js +++ b/js/apps/system/gharial/gharial.js @@ -47,7 +47,7 @@ if (testee === undefined) { return deflt || false; } - return testee.toLowerCase() === "true"; + return testee.toLowerCase() === "true" || testee === "1"; }, buildError = function(err, code) { return { diff --git a/js/server/modules/org/arangodb/ahuacatl.js b/js/server/modules/org/arangodb/ahuacatl.js index 08b127b1af..143956ca9a 100644 --- a/js/server/modules/org/arangodb/ahuacatl.js +++ b/js/server/modules/org/arangodb/ahuacatl.js @@ -4773,6 +4773,9 @@ function FILTER_RESTRICTION (list, restrictionList) { function DOCUMENTS_BY_EXAMPLE (collectionList, example) { var res = []; + if (example === "null") { + example = [{}]; + } if (!example) { example = [{}]; }