redmine_issues_controllerrb_recaptcha.diff

evan wheeler, 2008-07-07 17:24

Download (848 Bytes)

View differences:

issues_controller.rb (working copy)
145 145
                                                                                                       :customized => @issue,
146 146
                                                                                                       :value => (params[:custom_fields] ? params[:custom_fields][x.id.to_s] : nil)) }
147 147
      @issue.custom_values = @custom_values
148
      if @issue.save
148
      if verify_recaptcha(@issue) && @issue.save
149
      #if @issue.save
149 150
        attach_files(@issue, params[:attachments])
150 151
        flash[:notice] = l(:notice_successful_create)
151 152
        Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added')