diff --git a/src/app/librariantool/role/phoenix/iprange/PhoenixIpRangeController.js b/src/app/librariantool/role/phoenix/iprange/PhoenixIpRangeController.js index 41705d21..7617c986 100644 --- a/src/app/librariantool/role/phoenix/iprange/PhoenixIpRangeController.js +++ b/src/app/librariantool/role/phoenix/iprange/PhoenixIpRangeController.js @@ -18,12 +18,12 @@ angular.module('platform-ui.librariantool.role.phoenix.iprange').controller( /* Controller Definition */ function ($scope, $http, $cookies, $location, $state, Title, PhoenixIpRangeModel) { + $scope.partyId = $location.search()['partyId']; init(); $scope.setTitle(PhoenixIpRangeModel.title); $scope.ipranges = PhoenixIpRangeModel.ipranges; $scope.institutions = PhoenixIpRangeModel.institutions; $scope.institution = null; - $scope.partyId = null; $scope.addGroupShow = "hidden"; $scope.adding = false; $scope.newRange = PhoenixIpRangeModel.newRange; diff --git a/src/app/librariantool/role/phoenix/manage/PhoenixManage.js b/src/app/librariantool/role/phoenix/manage/PhoenixManage.js index 22d2fc99..756c1486 100644 --- a/src/app/librariantool/role/phoenix/manage/PhoenixManage.js +++ b/src/app/librariantool/role/phoenix/manage/PhoenixManage.js @@ -34,7 +34,7 @@ angular.module( } } }).state('role.phoenix.manage.institution', { - url: '/institution', + url: '/institution?partyId', views: { 'manage': { controller: 'PhoenixManageInstitutionController',