Skip to content
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

feat: Automatically unselect images when source image deleted Issue#9793 #9950

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

himanshi-154
Copy link

##What?
Issue#9793 that states that images should be automatically unselected when their source image is deleted

# Why?
This saves time for contributors on problematic images, and avoid forgetting to unselect it.

# How?
First checked if selected image id is equal to image id and then deleted the image id as the siurce image is already deleted

Adding my username in admins list first so that I can edit the Images.pm
…deleted

First checked if selected image id is equal to image id and then deleted the image id as the siurce image is already deleted
Copy link

sonarcloud bot commented Mar 18, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@@ -1213,6 +1213,12 @@ sub process_image_move ($user_id, $code, $imgids, $move_to, $ownerid) {

delete $product_ref->{images}{$imgid};

# Check if any selected image's imgid equals the deleted imgid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to check if the value of the "imgid" field of a selected field is equal to $imgid.

To verify the problem, see steps: #9793 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants