FSN#51342 Lijst met personen onder _DEFAULT kan traag zijn in autorisatiebeheer
svn path=/Website/trunk/; revision=37457
This commit is contained in:
@@ -1233,10 +1233,13 @@ api2 = {
|
||||
// Nu kan het zo zijn dat ons include record al eerder is toegevoegd
|
||||
// Kan gebeuren bij res_ruimte als je een include van res_alg_ruimte *en* opstelling doet
|
||||
var incfound = false;
|
||||
for (var i = 0; i < record[incname].length && !incfound; i++)
|
||||
if (params.include.length > 1) // niet onnodig doen, kan kwadratische performance impact hebben
|
||||
{
|
||||
if (record[incname][i].id == inc_key)
|
||||
incfound = true;
|
||||
for (var i = 0; i < record[incname].length && !incfound; i++)
|
||||
{
|
||||
if (record[incname][i].id == inc_key)
|
||||
incfound = true;
|
||||
}
|
||||
}
|
||||
if (!incfound)
|
||||
record[incname].push(api2.sql2jsonfields(params, oRs, incmodel));
|
||||
|
||||
Reference in New Issue
Block a user