Open Bug 1342527 (bmo_livecoding1) Opened 7 years ago Updated 7 years ago

Add support for a "nobody" group that has no members, which is 'partner-confidential' on BMO for instance

Categories

(Bugzilla :: Bugzilla-General, defect)

5.1.1
defect
Not set
normal

Tracking

()

Bugzilla 6.0

People

(Reporter: dylan, Assigned: dylanAtHome)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:

Add a group ($new_group) to a $product where one or more bugs are have a group set on them
that is NA/NA in the product group configuration ($bad_group)

Adding the group will trigger a confirmation: "Do you want to remove bad_group from $product?". Confirming that will produce the error message:

Can't call method "name" on an undefined value 

Expected Results:

Removing the group is probably sensible as this situation is weird to begin with (and subject to another bug to be filed after this) so when adding $new_group, it is acceptable if $old_group is removed.

Actual Results:

An exception is thrown.
Assignee: nobody → dylan
Alias: bmo_livecoding1
Summary: Error: Can't call method "name" on an undefined value when adding a group to a product → Can't call method "name" on an undefined value when adding a group to a product
Attached patch bug-fix.patchSplinter Review
Not sure if this is the right solution, but it's what happened after an hour of looking at it.
Assignee: dylan → dylan
Component: General → Bugzilla-General
Product: bugzilla.mozilla.org → Bugzilla
QA Contact: default-qa
Summary: Can't call method "name" on an undefined value when adding a group to a product → Add support for a "nobody" group that has no members, which is 'partner-confidential' on BMO for instance
Target Milestone: --- → Bugzilla 6.0
Version: Production → 5.1.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: