FSN#39312 Geen AiAi meer op http://uwva.facws001/trunk/api2/doc.xml
svn path=/Website/trunk/; revision=33041
This commit is contained in:
@@ -1363,9 +1363,9 @@ function generic_REST_GET(model, gparams)
|
||||
|
||||
if (!orderbys.length)
|
||||
{
|
||||
if ("name" in model.fields)
|
||||
if (model.fields && "name" in model.fields)
|
||||
orderbys.push(model.fields.name.dbs);
|
||||
else if ("id" in model.fields)
|
||||
else if (model.fields && "id" in model.fields)
|
||||
orderbys.push(model.fields.id.dbs);
|
||||
else
|
||||
orderbys.push(1); // FAC_VERSION heeft niets van dit alles
|
||||
@@ -1400,7 +1400,10 @@ function generic_REST_GET(model, gparams)
|
||||
var sql = "SELECT * FROM (" + sql + ") WHERE ROWNUM <= " + (maxcnt + 1); // Eentje extra om overflow-melding te triggeren in resultsettable
|
||||
}
|
||||
|
||||
var json = api2.sql2json (params, sql, model);
|
||||
if (model.fields)
|
||||
var json = api2.sql2json (params, sql, model);
|
||||
else
|
||||
json = {};
|
||||
|
||||
if ("disc_params" in model)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user