We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After resetting the avatar should be in the table image_id set to 0.
// BookStack\Http\Controllers\UserController if ($request->has('profile_image_reset')) { $this->imageRepo->destroyImage($user->avatar); $user->image_id = 0; // added $user->save(); // added }
Delete the avatar and check the users table.
Zero in column image_id
No response
22.11.1
does not matter
The text was updated successfully, but these errors were encountered:
Updated user avatar reset to clear relation id in database
03ad288
Added test to cover. For #3977
Thanks for reporting @ondrej-pazourek, this has been addressed in 03ad288, and will be part of the next feature release.
Sorry, something went wrong.
No branches or pull requests
Describe the Bug
After resetting the avatar should be in the table image_id set to 0.
Steps to Reproduce
Delete the avatar and check the users table.
Expected Behaviour
Zero in column image_id
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
22.11.1
PHP Version
No response
Hosting Environment
does not matter
The text was updated successfully, but these errors were encountered: