Francois Gouget : testbot/web: The VMsList page deals with VMs so rename the $Item parameter.
Alexandre Julliard
julliard at winehq.org
Wed Mar 30 15:17:55 CDT 2022
Module: tools
Branch: master
Commit: 5586caa061cf44ecb41d75a2446c783cbd10cede
URL: https://source.winehq.org/git/tools.git/?a=commit;h=5586caa061cf44ecb41d75a2446c783cbd10cede
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed Mar 30 19:04:23 2022 +0200
testbot/web: The VMsList page deals with VMs so rename the $Item parameter.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/web/admin/VMsList.pl | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/testbot/web/admin/VMsList.pl b/testbot/web/admin/VMsList.pl
index 283c542..0ed0b0d 100644
--- a/testbot/web/admin/VMsList.pl
+++ b/testbot/web/admin/VMsList.pl
@@ -54,16 +54,16 @@ sub SortKeys($$$)
sub OnItemAction($$$$)
{
- my ($self, $CollectionBlock, $Item, $Action) = @_;
+ my ($self, $CollectionBlock, $VM, $Action) = @_;
if ($Action eq "Delete")
{
- $Item->Role("deleted");
- (my $ErrProperty, $self->{ErrMessage}) = $Item->Save();
+ $VM->Role("deleted");
+ (my $ErrProperty, $self->{ErrMessage}) = $VM->Save();
return !defined $self->{ErrMessage};
}
- return $self->SUPER::OnItemAction($CollectionBlock, $Item, $Action);
+ return $self->SUPER::OnItemAction($CollectionBlock, $VM, $Action);
}
More information about the wine-cvs
mailing list