Skip to content

Commit

Permalink
Changes for formOptions arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Mar 27, 2017
1 parent 211b364 commit a0467a5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ManageIQ.angular.app.controller('catalogItemFormController', ['$scope', 'catalog

if (catalogItemFormId == 'new') {
$scope.newRecord = true;
vm.formOptions();
vm.formOptions(null);
vm.afterGet = true;
vm.modelCopy = angular.copy(vm.catalogItemModel);
} else {
Expand Down Expand Up @@ -149,7 +149,7 @@ ManageIQ.angular.app.controller('catalogItemFormController', ['$scope', 'catalog

$scope.resetClicked = function() {
vm.catalogItemModel = angular.copy(vm.modelCopy);
vm.formOptions();
vm.formOptions(null);
$scope.angularForm.$setUntouched(true);
$scope.angularForm.$setPristine(true);
miqService.miqFlash("warn", __("All changes have been reset"));
Expand Down Expand Up @@ -232,7 +232,7 @@ ManageIQ.angular.app.controller('catalogItemFormController', ['$scope', 'catalog


// list of service catalogs
vm.formOptions = function(configData = null) {
vm.formOptions = function(configData) {
API.get("/api/service_catalogs/?expand=resources&attributes=id,name" + sort_options).then(function(data) {
vm.catalogs = data.resources;
vm._catalog = _.find(vm.catalogs, {id: vm.catalogItemModel.catalog_id});
Expand Down

0 comments on commit a0467a5

Please sign in to comment.