Module: tools Branch: master Commit: e3c7c82506242f0da18ea85206001ea1684bf767 URL: https://source.winehq.org/git/tools.git/?a=commit;h=e3c7c82506242f0da18ea852...
Author: Francois Gouget fgouget@codeweavers.com Date: Fri Apr 15 11:44:08 2022 +0200
testbot/cgi: Fix FormPage's OnAction() error handling.
Form pages obviously don't have an enclosing page.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
testbot/lib/ObjectModel/CGI/FormPage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/lib/ObjectModel/CGI/FormPage.pm b/testbot/lib/ObjectModel/CGI/FormPage.pm index c419244..4f29efe 100644 --- a/testbot/lib/ObjectModel/CGI/FormPage.pm +++ b/testbot/lib/ObjectModel/CGI/FormPage.pm @@ -681,7 +681,7 @@ sub OnAction($$) { my ($self, $Action) = @_;
- $self->{EnclosingPage}->SetError(undef, "No action defined for $Action"); + $self->SetError(undef, "No action defined for $Action"); return 0; }