Skip to content

Commit

Permalink
Merge pull request #549 from sparc-request/ml-edit_document_upload_bug
Browse files Browse the repository at this point in the history
added ternary to determine the presence of document
  • Loading branch information
jleonardw9 committed Jul 11, 2016
2 parents 113c5b6 + 07542c8 commit 12b5ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/service_requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def document_save_update errors
process_ssr_organization_ids = params[:process_ssr_organization_ids]
document_id = params[:document_id]
doc_object = Document.find(document_id) if document_id
document = params[:document]
document = params[:document].present? || !params[:document_id].present? ? params[:document] : doc_object.document
doc_type = params[:doc_type]
doc_type_other = params[:doc_type_other]
upload_clicked = params[:upload_clicked]
Expand Down

0 comments on commit 12b5ab4

Please sign in to comment.