Merge lp:~gmb/launchpad/prevent-bnl-nothing-oopses-bug-721400 into lp:launchpad
Status: | Merged |
---|---|
Merged at revision: | 12527 |
Proposed branch: | lp:~gmb/launchpad/prevent-bnl-nothing-oopses-bug-721400 |
Merge into: | lp:launchpad |
Diff against target: |
92 lines (+36/-3) 3 files modified
lib/lp/bugs/browser/bugsubscription.py (+5/-3) lib/lp/bugs/browser/tests/test_bugsubscription_views.py (+26/-0) lib/lp/bugs/enum.py (+5/-0) |
To merge this branch: | bzr merge lp:~gmb/launchpad/prevent-bnl-nothing-oopses-bug-721400 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+52036@code.launchpad.net |
Commit message
[r=allenap]
Description of the change
This branch fixes bug 721400, wherein the BugTask:+subscribe page would
OOPS if the user had an existing subscription with a
bug_notificatio
to be set using the UI, though it is allowed via the API, and the view's
validation code was kicking out the default value.
The fix for the bug was to ensure that we only use the user's existing
bug_notificatio
allow to appear in the bug_notificatio
I've added a regression test to cover this bug.