Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I can fine upload an image, but when i then edit the user and press save it deletes the image.
So i have to edit the user again and upload the picture.
Comment | File | Size | Author |
---|---|---|---|
#3 | profile_pictures.patch | 886 bytes | yeputons |
Comments
Comment #1
falkendk CreditAttribution: falkendk commentedHTML after upload:
< img alt="Alt text" src="/sites/default/files/pictures/user-3-profile_portrait.png?6f1a995b23fa6fb85548345654d9dc4b">
HTML after edit
< img alt="Alt text" src="/">
Comment #2
aaronortega CreditAttribution: aaronortega commentedSame here. When updating profile the image is deleted. Using patched version with one page profile
Comment #3
yeputons CreditAttribution: yeputons commentedaaronortega: thank you very much, because this bug occurs only when One Page Profile is active.
Patch is attached.
Please test it and post here result of testing
Comment #4
yeputons CreditAttribution: yeputons commentedComment #5
yeputons CreditAttribution: yeputons commentedComment #6
yeputons CreditAttribution: yeputons commentedOK, I've tested this patch by myself and think that it works.
Fixed [ #849978 ] by yeputons (reported by KasperChristensen): image is being deleting when saving non-picture fields (used with One Page Profile)