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 | 5c83c9af403d38218206a0f1370b966f768ad62e (patch) | |
tree | b52ef10cb5745b314ea6d0c1d9662e9cf74b38be /src/templates | |
parent | f34036ffa2f1e272467046bfb3c4fc46da8e731d (diff) |
fix PHAROS-436 (overlapping metadata)
Change-Id: I47ee5d32472779a44a53fa3e2c04ef4411c59581
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/dashboard/searchable_select_multiple.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/templates/dashboard/searchable_select_multiple.html b/src/templates/dashboard/searchable_select_multiple.html index c594a27..4290147 100644 --- a/src/templates/dashboard/searchable_select_multiple.html +++ b/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; |