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

Bug 1926574 - When changing product of a bug and the destination product only has one component, pre-select the one component #2348

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

dklawren
Copy link
Collaborator

This change updates the webservice API that BugModal (show_bug.cgi) page uses to fetch a list of components when a user changes the product. If the new product selected only contains one component (i.e. Invalid Bugs) then it pre-selects the single component. If it has more than one, then it does the old behavior of adding a block component value and requires the user to select the proper component before submitting.

…uct only has one component, pre-select the one component
@dklawren dklawren requested a review from cgsheeh October 28, 2024 21:02
Copy link
Collaborator

@cgsheeh cgsheeh left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@dklawren dklawren merged commit e689b61 into mozilla-bteam:master Oct 28, 2024
17 checks passed
@dklawren dklawren deleted the 1926574 branch October 28, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants