From 7cfeb869b33e4d3796827f9aaaf2f63f9012d304 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Mon, 03 Aug 2015 10:13:44 +0000
Subject: [PATCH] #0 fix - LicType ID was wrong named on Pack form
---
securis/src/main/webapp/js/licenses.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/securis/src/main/webapp/js/licenses.js b/securis/src/main/webapp/js/licenses.js
index 08343ba..712f7e8 100644
--- a/securis/src/main/webapp/js/licenses.js
+++ b/securis/src/main/webapp/js/licenses.js
@@ -674,14 +674,14 @@
$scope.formu.metadata.splice( $scope.formu.metadata.indexOf(row_md), 1 );
}
$scope.updateMetadata = function() {
- // Called when Application ID change
+ // Called when LicType ID change
// in current field
var newLTId = $scope.pack['license_type_id'];
if (newLTId) {
// Only if there is a "valid"
// value selected we should
// update the metadata
- Catalogs.getResource('licensetype').get({licenseTypeId: newLTId}).$promise.then(function(lt) {
+ Catalogs.getResource('licensetype').get({id: newLTId}).$promise.then(function(lt) {
$scope.pack.metadata = [];
lt.metadata.forEach(function(md) {
$scope.pack.metadata.push({
--
Gitblit v1.3.2