diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2019-06-14 13:53:17 -0400 |
---|---|---|
committer | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2019-06-14 13:53:17 -0400 |
commit | 6a504fd180908365578369a6f2692e4524f31908 (patch) | |
tree | 68ffed5370dbe2cd441b660a63eeb77b506ed5f0 /dashboard/src | |
parent | 771613e9c9fae29cdf36e9e4390dbad672aa100b (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.html | 8 |
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; |