rsanchez
2015-08-03 7cfeb869b33e4d3796827f9aaaf2f63f9012d304
securis/src/main/webapp/js/licenses.js
....@@ -674,14 +674,14 @@
674674 $scope.formu.metadata.splice( $scope.formu.metadata.indexOf(row_md), 1 );
675675 }
676676 $scope.updateMetadata = function() {
677
- // Called when Application ID change
677
+ // Called when LicType ID change
678678 // in current field
679679 var newLTId = $scope.pack['license_type_id'];
680680 if (newLTId) {
681681 // Only if there is a "valid"
682682 // value selected we should
683683 // update the metadata
684
- Catalogs.getResource('licensetype').get({licenseTypeId: newLTId}).$promise.then(function(lt) {
684
+ Catalogs.getResource('licensetype').get({id: newLTId}).$promise.then(function(lt) {
685685 $scope.pack.metadata = [];
686686 lt.metadata.forEach(function(md) {
687687 $scope.pack.metadata.push({