benetech/MathShare

Bug: Images Deleted after Edit Problem (v1)

Opened this issue · 2 comments

Noted by EdReady:

"A new bug that we found:
When I have an image in a question I can see the image icon on this dashboard:

image

Then when we click "Edit Problem" and go into the question, even if we do not make any changes, if we click the green "Update Problem" button, the image then disappears. The first two questions in this set DID originally have an image, we edited/clicked Update Problem and you can see they are missing now. This is a link to that problem set in case it is helpful."

We were able to replicate it on a call. Essentially when editing a problem with an image, if they updated the problem, the image was deleted.

Expected Behavior: Images should be retained after updating a problem

Tested
If I added a photo to the problem and then I updated this problem the image stays - not disappeared.
Peek 2021-01-13 11-36
but during testing this issue I found another case with a disappearing photo, but in a step after edit. I will create a separate task for it. #1634

Thanks @abaranowska1 for documenting the secondary bug