diff --git a/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js b/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js index 2b979d977..0700b9625 100644 --- a/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js +++ b/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js @@ -49,9 +49,9 @@ function newGovernanceReportsReportsPage() { switch (tab) { case 'Profiles': { - HTML = HTML + UI.projects.governance.spaces.reportsSpace.userProfiles.addHTML() - resultCounter = UI.projects.governance.spaces.reportsSpace.userProfiles.resultCounter - + let response = UI.projects.governance.spaces.reportsSpace.userProfiles.addHTML() + HTML = HTML + response.HTML + resultCounter = response.resultCounter break } } diff --git a/Projects/Governance/UI/Spaces/Reports-Space/UserProfiles.js b/Projects/Governance/UI/Spaces/Reports-Space/UserProfiles.js index 2296d49f2..885c88fdf 100644 --- a/Projects/Governance/UI/Spaces/Reports-Space/UserProfiles.js +++ b/Projects/Governance/UI/Spaces/Reports-Space/UserProfiles.js @@ -1,6 +1,5 @@ function newGovernanceReportsUserProfiles() { let thisObject = { - resultCounter: undefined, addHTML: addHTML, initialize: initialize, finalize: finalize @@ -18,7 +17,6 @@ function newGovernanceReportsUserProfiles() { function addHTML() { - thisObject.resultCounter = 0 let tableRecords = [] let table = 'userProfiles' let tableRecordDefinition = { diff --git a/Projects/Governance/UI/Utilities/Tables.js b/Projects/Governance/UI/Utilities/Tables.js index c0a4e9c2d..af9928cbd 100644 --- a/Projects/Governance/UI/Utilities/Tables.js +++ b/Projects/Governance/UI/Utilities/Tables.js @@ -7,6 +7,7 @@ function newGovernanceUtilitiesTables() { function addHTML(table, tableRecords, tableRecordDefinition) { let HTML = '' + let resultCounter = 0 /* Get the sorting order for this table. */ @@ -131,7 +132,7 @@ function newGovernanceUtilitiesTables() { } } - thisObject.resultCounter++ + resultCounter++ HTML = HTML + '' } @@ -141,6 +142,6 @@ function newGovernanceUtilitiesTables() { HTML = HTML + '' - return HTML + return { HTML: HTML, resultCounter: resultCounter } } } \ No newline at end of file