FSN#38368 Telling voor Meer.... ook correct bij de merged-modellen zoals vakgroepen
svn path=/Website/trunk/; revision=32220
This commit is contained in:
@@ -1130,6 +1130,12 @@ api2 = {
|
||||
total_count ++;
|
||||
data.push(record);
|
||||
}
|
||||
if ("merged_model" in model) // de disc_params truc
|
||||
{
|
||||
model.merged_model.limit = limit;
|
||||
//model.offset = offset;
|
||||
model.merged_model.total_count = total_count;
|
||||
}
|
||||
model.limit = limit;
|
||||
//model.offset = offset;
|
||||
model.total_count = total_count;
|
||||
@@ -1245,8 +1251,9 @@ api2 = {
|
||||
model.REST_PUT = generic_REST_PUT(model, gparams);
|
||||
model.REST_DELETE = generic_REST_DELETE(model, gparams);
|
||||
},
|
||||
merge_disc_params_model: function(deze, template_model, tomodel)
|
||||
merge_disc_params_model: function(deze, template_model)
|
||||
{
|
||||
template_model.merged_model = deze; // hebben we nodig om total_count te kunnen zetten
|
||||
for (var x in template_model)
|
||||
deze[x] = template_model[x];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user