FIX: `limit` parameter value `ALL` should work for JSON exports.

183bc26763
This commit is contained in:
Vinoth Kannan 2020-02-24 10:28:22 +05:30
parent 183bc26763
commit bbea8884db
1 changed files with 1 additions and 3 deletions

View File

@ -1181,11 +1181,9 @@ SQL
opts[:limit] =
if params[:limit]
params[:limit].to_i
params[:limit] == "ALL" ? "ALL" : params[:limit].to_i
elsif params[:format] == "csv"
DataExplorer::QUERY_RESULT_MAX_LIMIT
elsif params[:limit] == "ALL"
"ALL"
end
result = DataExplorer.run_query(query, query_params, opts)