Skip to content

Commit

Permalink
Merge pull request #19388 from code-dot-org/certificate-update
Browse files Browse the repository at this point in the history
Update custom certificate
  • Loading branch information
joshlory committed Nov 27, 2017
2 parents 2fcc434 + 9db3e82 commit ac503b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pegasus/routes/hoc_routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
only_for ['code.org', 'csedweek.org', partner_sites].flatten

row = DB[:hoc_activity].where(session: params[:session_s]).first
if row
if row && !row[:name]
name = params[:name_s].to_s.strip
DB[:hoc_activity].where(id: row[:id]).update(name: name)
row[:name] = name
Expand Down

0 comments on commit ac503b6

Please sign in to comment.