From 751deee05a51a7e38d5571f5db17f6e06638f56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Wed, 17 Oct 2012 15:46:46 +0200 Subject: [PATCH] don't mix ProductId and ProductKey --- .../Agent/Task/Inventory/Input/Win32/License.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/FusionInventory/Agent/Task/Inventory/Input/Win32/License.pm b/lib/FusionInventory/Agent/Task/Inventory/Input/Win32/License.pm index 2bda13baf3..801f4db046 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Input/Win32/License.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Input/Win32/License.pm @@ -22,9 +22,9 @@ sub _scanOffice { my %license; if ($currentKey->{'ProductID'}) { - $license{'KEY'} = $currentKey->{ProductID}; - } elsif ($currentKey->{DigitalProductID}) { - $license{'KEY'} = getLicenseKey($currentKey->{DigitalProductID}); + $license{'PRODUCTID'} = $currentKey->{ProductID}; + } if ($currentKey->{DigitalProductID}) { + $license{'KEY'} = parseProductKey($currentKey->{DigitalProductID}); } if ($currentKey->{ConvertToEdition}) { $license{'FULLNAME'} = encodeFromRegistry($currentKey->{ConvertToEdition});