Commit eb2477c80b7f664f1de596271bbef62090f348e6
1 parent
31cfe031
Exists in
master
and in
29 other branches
work-assignment: use user name to slug instead of identifier on user folder slug
ActionItem3161
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/work_assignment/lib/work_assignment_plugin/work_assignment.rb
... | ... | @@ -33,7 +33,7 @@ class WorkAssignmentPlugin::WorkAssignment < Folder |
33 | 33 | end |
34 | 34 | |
35 | 35 | def find_or_create_author_folder(author) |
36 | - children.find_by_slug(author.identifier) || Folder.create!(:name => author.name, :slug => author.identifier, :parent => self, :profile => profile) | |
36 | + children.find_by_slug(author.name.to_slug) || Folder.create!(:name => author.name, :parent => self, :profile => profile) | |
37 | 37 | end |
38 | 38 | |
39 | 39 | def submissions | ... | ... |