[PATCH] testbot/web: Tweak VMDetails.pl to save the Item directly.

Francois Gouget fgouget at codeweavers.com
Mon Mar 26 20:45:29 CDT 2018


This avoids depending on whether Items retrieved with GetItem() are
stored in the Collection or not.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/web/admin/VMDetails.pl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/testbot/web/admin/VMDetails.pl b/testbot/web/admin/VMDetails.pl
index 7b562a746..11cec4cf1 100644
--- a/testbot/web/admin/VMDetails.pl
+++ b/testbot/web/admin/VMDetails.pl
@@ -58,8 +58,7 @@ sub Save($)
     }
   }
 
-  my $ErrKey;
-  ($ErrKey, $self->{ErrField}, $self->{ErrMessage}) = $self->{Collection}->Save();
+  ($self->{ErrField}, $self->{ErrMessage}) = $self->{Item}->Save();
   return ! defined($self->{ErrMessage});
 }
 
-- 
2.16.2




More information about the wine-devel mailing list