We're updating the issue view to help you get more done. 

Prompt Meme: Nil prompt description causes errors when fulfilling challenge claim

Description

Steps to reproduce

Note: Some of these steps may be superfluous, but I was able to reproduce the issue consistently by following these exact steps and I didn't feel like testing over and over until I figured out how necessary each step was.

  1. Log in

  2. Browse > Collections > New Collection

  3. Fill in required information

  4. For "Type of challenge, if any" choose "Prompt Meme"

  5. Submit

  6. Make sure "Sign-up open?" is checked

  7. Under Request Settings:

    1. Check both Required and Allowed for Title

    2. Uncheck both Required and Allowed for Description

    3. Require 0 and allow 1 for Fandoms

    4. Require and allow 0 for other tag types

  8. Submit

  9. Follow the Prompt Form link

  10. Fill in just a Title for your prompt

  11. Submit

  12. Follow the Claim link on the prompt

  13. Now follow the Fulfill link on the prompt

What happens

A 500 error. This error is happening because the prompt's description is nil, and it's trying to convert nil into a string to fill in the author's notes:

Error message
ActionView::Template::Error: no implicit conversion of nil into String

Stack trace
/home/ao3app/app/releases/20171126174924/app/views/works/notes_form.html.erb:19:in `_app_views_worksnotes_form_html_erb_176983077471303024_47215379287580'

What should happen instead

The post new form should load with prompt-related information filled in

Notes

For a workaround, users can go Post > New Work instead.

Environment

None

Status

Assignee

elzj78 (Elz)

Reporter

elzj78 (Elz)

Roadmap

Challenges

Priority

Medium

Affects versions

0.9.198

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9