You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you print a donation with a product drive, but no product drive participant, it gives an unhandled exception. It should skip trying to print the product drive participant instead.
Why?
We've got over 3000 of this case in production -- so this is definitely a normal business case.
Details
To replicate
sign in as org_Admin1@example.com
Click Donations
New Donation
enter a donation that has a product drive, but leave the product drive participant blank
save
print
It gives a 500 error
What should happen instead
It looks like this is happening when the "Donation from" section is being printed. If it's a product drive, but without a product drive participant, put "Product Drive -- [the name of the product drive]" there instead.
Hint:
donation_pdf.rb has a class called DonorInfo you should look at.
#Criteria for completion
behaviour as described above
tests to support the behaviour
The text was updated successfully, but these errors were encountered:
Hi, I would like to work on this as my first contribution to this repo. Thanks to the helpful Getting Started docs and the very detailed write up for this issue, I think I have been able to reproduce it locally:
Summary
If you print a donation with a product drive, but no product drive participant, it gives an unhandled exception. It should skip trying to print the product drive participant instead.
Why?
We've got over 3000 of this case in production -- so this is definitely a normal business case.
Details
To replicate
sign in as org_Admin1@example.com
Click Donations
New Donation
enter a donation that has a product drive, but leave the product drive participant blank
save
print
It gives a 500 error
What should happen instead
It looks like this is happening when the "Donation from" section is being printed. If it's a product drive, but without a product drive participant, put "Product Drive -- [the name of the product drive]" there instead.
Hint:
donation_pdf.rb has a class called DonorInfo you should look at.
#Criteria for completion
The text was updated successfully, but these errors were encountered: