From 270dcfc31c637224544b3e20e91a0a3354239a2e Mon Sep 17 00:00:00 2001
From: Malek <malek.zoabi@amdocs.com>
Date: Sun, 14 Oct 2018 13:46:26 +0300
Subject: Fix draft license version

Change-Id: I38e69807228faab5efa7fb55ac7abd76c319ad77
Issue-ID: SDC-1834
Signed-off-by: Malek <malek.zoabi@amdocs.com>
---
 .../softwareProduct/details/SoftwareProductDetailsView.jsx    | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx')

diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx
index 1b384636e6..dbc04d0e87 100644
--- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx
+++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx
@@ -25,6 +25,7 @@ import GridSection from 'nfvo-components/grid/GridSection.jsx';
 import GridItem from 'nfvo-components/grid/GridItem.jsx';
 import SoftwareProductCategoriesHelper from 'sdc-app/onboarding/softwareProduct/SoftwareProductCategoriesHelper.js';
 import { forms } from 'sdc-app/onboarding/softwareProduct/SoftwareProductConstants.js';
+import { versionStatus } from 'sdc-app/common/helpers/ItemsHelperConstants.js';
 
 const DeprecatedVlmInfo = ({ vendorName, onVendorRemove }) => {
     return (
@@ -623,10 +624,12 @@ class SoftwareProductDetails extends Component {
         ];
 
         return licensingVersionsListItems.concat(
-            licensingVersionsList.map(version => ({
-                enum: version.id,
-                title: version.name
-            }))
+            licensingVersionsList
+                .filter(item => item.status === versionStatus.CERTIFIED)
+                .map(version => ({
+                    enum: version.id,
+                    title: version.name
+                }))
         );
     }
 
-- 
cgit 1.2.3-korg

