summaryrefslogtreecommitdiffstats
path: root/dashboard/src
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-06-14 13:53:17 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2019-06-14 13:53:17 -0400
commit6a504fd180908365578369a6f2692e4524f31908 (patch)
tree68ffed5370dbe2cd441b660a63eeb77b506ed5f0 /dashboard/src
parent771613e9c9fae29cdf36e9e4390dbad672aa100b (diff)
fix PHAROS-436 (overlapping metadata)
Change-Id: I47ee5d32472779a44a53fa3e2c04ef4411c59581 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'dashboard/src')
-rw-r--r--dashboard/src/templates/dashboard/searchable_select_multiple.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/dashboard/src/templates/dashboard/searchable_select_multiple.html b/dashboard/src/templates/dashboard/searchable_select_multiple.html
index c594a27..4290147 100644
--- a/dashboard/src/templates/dashboard/searchable_select_multiple.html
+++ b/dashboard/src/templates/dashboard/searchable_select_multiple.html
@@ -262,7 +262,11 @@
if( str.length == 1 )
{
new_trie.isComplete = true;
- new_trie.itemID = id;
+ if( !new_trie.ids )
+ {
+ new_trie.ids = [];
+ }
+ new_trie.ids.push(id);
}
inner_trie = new_trie;
str = str.substring(1);
@@ -336,7 +340,7 @@
}
if ( trie.isComplete )
{
- itemIDs.push( trie.itemID );
+ itemIDs.push(...trie.ids);
}
return itemIDs;