[tools] testbot/cgi: Fix FormPage's OnAction() error handling.

Francois Gouget fgouget at codeweavers.com
Fri Apr 15 04:44:08 CDT 2022


Form pages obviously don't have an enclosing page.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
Clearly a CollectionBlock copy/paste error.
---
 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 c41924433..4f29efec7 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;
 }
 
-- 
2.30.2



More information about the wine-devel mailing list