-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
Automatically unselect images when source image is deleted #9793
Comments
Notes to solve this: Only admins can delete images, you need to edit lib/ProductOpener/Config_off.pm to add your userid to the list of admins, and then create this user on your local dev environment. Related code is is in lib/ProductOpener/Images.pm the function called when images are deleted is: Selected images are stored in $product_ref->{images} , once an image is deleted, you will need to check the images to see which ones have the "imgid" field equal to the id of the image deleted, and then call process_image_unselect. |
I would like to work on this issue! |
Added code to solve issue openfoodfacts#9793 to automatically unselect images when source image is deleted.
Steps to verify that the problem is solved:
|
@stephanegigandet can i work on this issue. |
@komalverma04 I have already done some work on this issue, please refer this PR and let me know if you find something that I need to improve in it! |
Great!! For sure. |
What
Why
Code pointers
Notes to solve this:
sub process_image_move ($user_id, $code, $imgids, $move_to, $ownerid) {
Steps to verify that the problem is solved
Part of
The text was updated successfully, but these errors were encountered: