|
@@ -65,7 +65,7 @@ $(document).ready(function() {
|
|
|
let resetButton = form.find("button.reset-search").first();
|
|
let resetButton = form.find("button.reset-search").first();
|
|
|
let submitButton = form.find("button.submit-search").first();
|
|
let submitButton = form.find("button.submit-search").first();
|
|
|
|
|
|
|
|
- let organizationId = queryParameters.get('organization-id') || structureFrame.data('organization-id');
|
|
|
|
|
|
|
+ let organizationId = parseInt(queryParameters.get('organization-id') || structureFrame.data('organization-id'));
|
|
|
if (!organizationId) {
|
|
if (!organizationId) {
|
|
|
pleaseWaitSpan.hide();
|
|
pleaseWaitSpan.hide();
|
|
|
errorMsgSpan.show();
|
|
errorMsgSpan.show();
|
|
@@ -203,6 +203,7 @@ $(document).ready(function() {
|
|
|
function populateFederationsSelect() {
|
|
function populateFederationsSelect() {
|
|
|
federationSelect.children('option:not(:first)').remove();
|
|
federationSelect.children('option:not(:first)').remove();
|
|
|
let has_options = false;
|
|
let has_options = false;
|
|
|
|
|
+
|
|
|
structures.forEach(function (structure) {
|
|
structures.forEach(function (structure) {
|
|
|
if (structure.n1Id === organizationId && structure.principalType.endsWith('FEDERATION')) {
|
|
if (structure.n1Id === organizationId && structure.principalType.endsWith('FEDERATION')) {
|
|
|
let id = structure['@id'].split('/').pop()
|
|
let id = structure['@id'].split('/').pop()
|