Skip to content

Commit

Permalink
[webui] Add comment to save action
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jul 27, 2015
1 parent 2a87cab commit 711b132
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/app/controllers/webui/patchinfo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def save
valid_params = true
required_parameters :project, :package
flash[:error] = nil
# Note: At this point a patchinfo already got created by
# Patchinfo.new.create_patchinfo in the new_patchinfo action
if !valid_summary? params[:summary]
valid_params = false
flash[:error] = "|| Summary is too short (should have more than 10 signs)"
Expand Down

0 comments on commit 711b132

Please sign in to comment.