Francois Gouget : testbot/web: The VMsList page deals with VMs so rename the $Item parameter.
Module: tools Branch: master Commit: 5586caa061cf44ecb41d75a2446c783cbd10cede URL: https://source.winehq.org/git/tools.git/?a=commit;h=5586caa061cf44ecb41d75a2... Author: Francois Gouget <fgouget(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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); }
participants (1)
-
Alexandre Julliard