mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
Updated TemplatePro
This commit is contained in:
parent
a098584994
commit
8116c25e2f
@ -54,7 +54,8 @@ var
|
||||
begin
|
||||
ContentType := TMVCMediaType.APPLICATION_JSON;
|
||||
lJObj := TJSONObject.Create;
|
||||
lJObj.S['message'] := 'This is protected content accessible only by user1';
|
||||
lJObj.S['message'] := 'This is protected content accessible only by user1: you are ' +
|
||||
Context.LoggedUser.UserName + ' logged since ' + DateTimeToStr(Context.LoggedUser.LoggedSince);
|
||||
lJArr := lJObj.A['querystringparameters'];
|
||||
|
||||
lQueryParams := Context.Request.QueryStringParams;
|
||||
|
@ -2453,9 +2453,9 @@ begin
|
||||
GetVariables.Add(Name, TVarDataSource.Create(TJDOJsonObject(Value.AsObject), [viJSONObject]));
|
||||
end
|
||||
else
|
||||
if Value.AsObject is TJDOJsonObject then
|
||||
if Value.AsObject is TJDOJsonArray then
|
||||
begin
|
||||
GetVariables.Add(Name, TVarDataSource.Create(TJDOJsonObject(Value.AsObject), [viJSONObject]));
|
||||
raise ETProRenderException.Create('JSONArray cannot be used directly [HINT] Define a JSONObject variable with a JSONArray property');
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user