Merge lp:~jcsackett/launchpad/info-type-from-main-host into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | j.c.sackett on 2012-08-03 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15743 |
| Proposed branch: | lp:~jcsackett/launchpad/info-type-from-main-host |
| Merge into: | lp:launchpad |
| Diff against target: |
27 lines (+3/-3) 2 files modified
lib/lp/bugs/javascript/information_type_choice.js (+1/-2) lib/lp/bugs/javascript/tests/test_information_type_choice.js (+2/-1) |
| To merge this branch: | bzr merge lp:~jcsackett/launchpad/info-type-from-main-host |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2012-08-03 | Approve on 2012-08-03 |
|
Review via email:
|
|||
Commit Message
Fixes information_
Description of the Change
Summary
=======
Switching infotype's on a bug breaks if you're looking at the bug on the main
host, rather than on the bug host.
This is because the info_type change module gets the post link using the bug's
web_link url and appending the secrecy view url stub onto it. +secrecy is
available regardless of whether you're on the bug host or the main host, so
there's no reason to use the web_link to get the full +secrecy url.
Implementation
==============
Switch the use of the web_link + "+secrecy" to use document.URL "+secrecy"
Tests
=====
bin/test -vvct information_type --layer=YUI
QA
==
Switch info type on the bug host and the main host for a bug. Both should
work.
LoC
===
This is part of disclosure.
Lint
====
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/

Lovely