UWVA#34560 Alguse + ruiuse lees rechten toch geen ruimten zien (UWVA#32952)
svn path=/Website/branches/v2015.2/; revision=27134
This commit is contained in:
@@ -35,7 +35,9 @@ var formfields = [ { name: "name", frm: "room_nr" },
|
||||
{ name: "openfrom", frm: "room_beginuur" },
|
||||
{ name: "opento", frm: "room_einduur" }
|
||||
];
|
||||
var params = { filter: { "id": room_key },
|
||||
var params = { filter: { id: room_key,
|
||||
scope: "fe"
|
||||
},
|
||||
properties: { extraserie: false,
|
||||
nameprefix: "k"
|
||||
}
|
||||
|
||||
@@ -277,21 +277,24 @@ function model_rooms(room_key, params)
|
||||
return { key: room_key, warning: "" };
|
||||
}
|
||||
|
||||
if (room_key > 0)
|
||||
if (room_key) // Niet bij initialisatie van model.
|
||||
{
|
||||
params.filter = params.filter || {};
|
||||
params.filter.id = room_key;
|
||||
if (! ("include" in params) )
|
||||
params.include = { include: ["custom_fields"]};
|
||||
if (room_key > 0)
|
||||
{
|
||||
params.filter = params.filter || {};
|
||||
params.filter.id = room_key;
|
||||
if (! ("include" in params) )
|
||||
params.include = { include: ["custom_fields"]};
|
||||
|
||||
var xxx_array = this.REST_GET(params);
|
||||
if (!xxx_array.length)
|
||||
shared.record_not_found();
|
||||
this.data = xxx_array[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
_check_authorization (params, "POST")
|
||||
var xxx_array = this.REST_GET(params);
|
||||
if (!xxx_array.length)
|
||||
shared.record_not_found();
|
||||
this.data = xxx_array[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
_check_authorization (params, "POST")
|
||||
}
|
||||
}
|
||||
}
|
||||
%>
|
||||
Reference in New Issue
Block a user