-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 500 when cloning a part with a preview image without an associated attachment #559
Comments
|
…during cloning This fixes issue #559
Should be fixed with latest commit |
Thank you very much for the really quick fix. I found a other problem with the preview image when cloning. If you clone a part with a preview image and delete the existing preview image from the attachment and add a new image as an attachment, it is not automatically used as a preview image. If you create a new part, the first image in the attachment is added as a preview image. |
I have found a bug. If you clone a part that has an image in the attachments as a preview image and you delete the image before cloning, the error 500 is displayed.
The reason for this is that the selection field for the preview image is not cleared when the attachment is deleted. When saving the part
, the preview image referenced in the selection field is then missing. If you empty this field manually, no error occurs.
The error occurs with Docker version 0.10.7 and the online demo. For example with this part:
https://demo.part-db.de/en/part/1535/info#attachments
The text was updated successfully, but these errors were encountered: