| .. | .. |
|---|
| 113 | 113 | } |
|---|
| 114 | 114 | $scope.refs = {}; |
|---|
| 115 | 115 | Catalogs.init().then(function() { |
|---|
| 116 | | - Catalogs.loadRefs($scope.refs, [{resource: 'organization', name: 'organization_id'},{resource: 'licensetype', name: 'license_type_id'}]) |
|---|
| 116 | + var refFields = [{resource: 'organization', name: 'organization_id'},{resource: 'licensetype', name: 'license_type_id'}]; |
|---|
| 117 | + Catalogs.loadRefs(function(refs) { |
|---|
| 118 | + $scope.refs = refs; |
|---|
| 119 | + }, refFields); |
|---|
| 117 | 120 | }); |
|---|
| 118 | 121 | |
|---|
| 119 | 122 | // Used to create the form with the appropriate data |
|---|