mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 13:06:18 +02:00
* Make sure that the value of ActionVar is passed as actionname to the OnGetAction event
git-svn-id: trunk@16341 -
This commit is contained in:
parent
c4cd67c782
commit
af40e489dc
@ -397,15 +397,16 @@ end;
|
|||||||
function TCustomWebActions.GetActionName(ARequest: TRequest): String;
|
function TCustomWebActions.GetActionName(ARequest: TRequest): String;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
If (FActionVar<>'') then
|
||||||
|
Result:=ARequest.QueryFields.Values[FActionVar]
|
||||||
|
else
|
||||||
|
Result := '';
|
||||||
If Assigned(FOnGetAction) then
|
If Assigned(FOnGetAction) then
|
||||||
FOnGetAction(Self,ARequest,Result);
|
FOnGetAction(Self,ARequest,Result);
|
||||||
|
// GetNextPathInfo is only used after OnGetAction, so that the call to
|
||||||
|
// GetNextPathInfo can be avoided in the event.
|
||||||
If (Result='') then
|
If (Result='') then
|
||||||
begin
|
Result:=ARequest.GetNextPathInfo;
|
||||||
If (FActionVar<>'') then
|
|
||||||
Result:=ARequest.QueryFields.Values[FActionVar];
|
|
||||||
If (Result='') then
|
|
||||||
Result:=ARequest.GetNextPathInfo;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TCustomWebActions.Create(AItemClass: TCollectionItemClass);
|
constructor TCustomWebActions.Create(AItemClass: TCollectionItemClass);
|
||||||
|
Loading…
Reference in New Issue
Block a user