Skip to content

Commit

Permalink
[webui] Cleanup setting of flash error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jul 27, 2015
1 parent 2387ded commit f0e720f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/controllers/webui/patchinfo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ def save
flash[:error] = nil
if !valid_summary? params[:summary]
valid_params = false
flash[:error] = "#{flash[:error]}" + ' || Summary is too short (should have more than 10 signs)'
flash[:error] = "|| Summary is too short (should have more than 10 signs)"
end
if !valid_description? params[:description]
valid_params = false
flash[:error] = "#{flash[:error]}" + ' || Description is too short (should have more than 50 signs and longer than summary)'
flash[:error] = "#{flash[:error]} || Description is too short (should have more than 50 signs and longer than summary)"
end

if valid_params
Expand Down

0 comments on commit f0e720f

Please sign in to comment.