Skip to content

Commit

Permalink
replace colon and comma in role names since they are also separators
Browse files Browse the repository at this point in the history
  • Loading branch information
martenson committed Sep 15, 2017
1 parent 540322e commit 7d2cd22
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/galaxy/scripts/mvc/library/library-dataset-view.js
Expand Up @@ -275,7 +275,8 @@ var LibraryDatasetView = Backbone.View.extend({
_serializeRoles : function(role_list){
var selected_roles = [];
for (var i = 0; i < role_list.length; i++) {
selected_roles.push(role_list[i][1] + ':' + role_list[i][0]);
// Replace the : and , in role's name since these are select2 separators for initialData
selected_roles.push(role_list[i][1] + ':' + role_list[i][0].replace(':', ' ').replace(',', ' &'));
}
return selected_roles;
},
Expand Down

0 comments on commit 7d2cd22

Please sign in to comment.