This branch fixes bug 435556: Non-AJAX bugtask edit links always point to the context task.
This cause is trivial: The links were simply "static" links <a href="+editstatus">, so they all pointed to the edit page of the "current" bug task. The fix is trivial: Set the link target via a TAL expression. Note that when the template is rendered, the context is not the bug task as given by the URL of the page: The context is set in BugTasksAndNominationsView._getTableRowView(), which is called by BugTasksAndNominationsView.getBugTaskAndNominationViews(), and the latter method sets the context to the "right" bugtask.
test: ./bin/test --test=xx-bugtask-edit-forms.txt
Lots of tests mention the +editstatus URL; without checking the relevance of them, a test run covering all of these tests is:
This branch fixes bug 435556: Non-AJAX bugtask edit links always point to the context task.
This cause is trivial: The links were simply "static" links <a href="+ editstatus" >, so they all pointed to the edit page of the "current" bug task. The fix is trivial: Set the link target via a TAL expression. Note that when the template is rendered, the context is not the bug task as given by the URL of the page: The context is set in BugTasksAndNomi nationsView. _getTableRowVie w(), which is called by BugTasksAndNomi nationsView. getBugTaskAndNo minationViews( ), and the latter method sets the context to the "right" bugtask.
test: ./bin/test --test= xx-bugtask- edit-forms. txt
Lots of tests mention the +editstatus URL; without checking the relevance of them, a test run covering all of these tests is:
./bin/test -vv -f lp stories. bug-release- management upstream- bugprivacy bug-also- affects package- bug-task- authenticated. txt \ bugwatch- linkage. txt \ privileged- statuses. txt \ importance- change. txt \ editable- bug-task. txt \ email-address- bugtask. txt \ while-editing. txt \ to-malone. txt \ assignee- widget. txt \ create- question. txt \ bugs.txt \ account. txt \ milestones. txt \ milestone- on-distribution .txt \ reassignment- and-milestones. txt \
./bin/test -vv -f lp stories.
./bin/test -vv -f lp stories.
./bin/test -vv -t xx-edit-
-t xx-bugtask-
-t xx-bug-
-t xx-bug-
-t xx-view-
-t xx-edit-
-t xx-subscribe-
-t xx-switch-
-t xx-bugtask-
-t xx-bug-
-t xx-incomplete-
-t xx-bug-activity.txt \
-t xx-deactivate-
-t object-
-t xx-create-
-t xx-product-
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: bugs/stories/ bugtask- management/ xx-bugtask- edit-forms. txt bugs/templates/ bugtask- tasks-and- nominations- table-row. pt
lib/lp/
lib/lp/