| .. | .. |
|---|
| 674 | 674 | $scope.formu.metadata.splice( $scope.formu.metadata.indexOf(row_md), 1 ); |
|---|
| 675 | 675 | } |
|---|
| 676 | 676 | $scope.updateMetadata = function() { |
|---|
| 677 | | - // Called when Application ID change |
|---|
| 677 | + // Called when LicType ID change |
|---|
| 678 | 678 | // in current field |
|---|
| 679 | 679 | var newLTId = $scope.pack['license_type_id']; |
|---|
| 680 | 680 | if (newLTId) { |
|---|
| 681 | 681 | // Only if there is a "valid" |
|---|
| 682 | 682 | // value selected we should |
|---|
| 683 | 683 | // 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) { |
|---|
| 685 | 685 | $scope.pack.metadata = []; |
|---|
| 686 | 686 | lt.metadata.forEach(function(md) { |
|---|
| 687 | 687 | $scope.pack.metadata.push({ |
|---|