rsanchez
2014-10-15 7686a892d556333194349f73fee3a268b6202d66
securis/src/main/resources/static/js/licenses.js
....@@ -113,7 +113,10 @@
113113 }
114114 $scope.refs = {};
115115 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);
117120 });
118121
119122 // Used to create the form with the appropriate data