Skip to content

Commit

Permalink
Merge pull request #3117 from benwbrum/3116-confused-works
Browse files Browse the repository at this point in the history
look up IDs numerically to exclude number based slugs
  • Loading branch information
saracarl authored Apr 22, 2022
2 parents 97e5f1d + 942e1ed commit 7fdf5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/work_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def create
end

def update
@work = Work.find(params[:id]) || Work.find_by(id: params[:work_id])
@work = Work.find(params[:id].to_i)
id = @work.collection_id
@collection = @work.collection if @collection.nil?
#check the work transcription convention against the collection version
Expand Down

0 comments on commit 7fdf5df

Please sign in to comment.