[tools] testbot/web: The VMsList page deals with VMs so rename the $Item parameter.
Francois Gouget
fgouget at codeweavers.com
Wed Mar 30 12:04:23 CDT 2022
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
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 283c54263..0ed0b0d0b 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);
}
--
2.30.2
More information about the wine-devel
mailing list