From ed9918a53751a49d3ecafc6cd9a7754c17deb153 Mon Sep 17 00:00:00 2001 From: Alezia Kurdis <60075796+AleziaKurdis@users.noreply.github.com> Date: Tue, 3 Mar 2020 19:21:14 -0500 Subject: [PATCH] Fix for the multiselection. This is the fix for the multiselection case. (It doesn't include the solution for User Data.) --- .../entityProperties/html/js/entityProperties.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/system/create/entityProperties/html/js/entityProperties.js b/scripts/system/create/entityProperties/html/js/entityProperties.js index d9fbe7c97c..7bfc869f04 100644 --- a/scripts/system/create/entityProperties/html/js/entityProperties.js +++ b/scripts/system/create/entityProperties/html/js/entityProperties.js @@ -4491,7 +4491,15 @@ function loaded() { } function showOnTheSamePage(entityType) { - if (!GROUPS_PER_TYPE[entityType].includes(currentTab)) { + var i; + var numbType = entityType.length; + var matchingType = 0; + for (i = 0; i < numbType; i++) { + if (GROUPS_PER_TYPE[entityType[i]].includes(currentTab)) { + matchingType = matchingType + 1; + } + } + if (matchingType !== numbType) { currentTab = "base"; } showPage(currentTab);