Przeglądaj źródła

https://assistance.opentalent.fr/browse/V8-2382

Olivier Massot 4 lat temu
rodzic
commit
6aeeee64bd

+ 2 - 1
ot_templating/Resources/Public/assets/Classic/script/structures.js

@@ -65,7 +65,7 @@ $(document).ready(function() {
     let resetButton = form.find("button.reset-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) {
         pleaseWaitSpan.hide();
         errorMsgSpan.show();
@@ -203,6 +203,7 @@ $(document).ready(function() {
     function populateFederationsSelect() {
         federationSelect.children('option:not(:first)').remove();
         let has_options = false;
+
         structures.forEach(function (structure) {
             if (structure.n1Id === organizationId && structure.principalType.endsWith('FEDERATION')) {
                 let id = structure['@id'].split('/').pop()