View Issue Details

IDProjectCategoryView StatusLast Update
0002966mantisbtbugtrackerpublic2005-04-18 10:31
Reportervboctor Assigned Tothraxisp  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionsuspended 
Summary0002966: bug_resolve and bug_close.php always show bug simple details
Description

The details shown should depend on whether the user's preference is simple or advanced. It can also depend on the referer, hence, depending on how the user was viewing the bug.

TagsNo tags attached.

Activities

vboctor

vboctor

2003-02-27 01:46

manager   ~0003857

This issue also applies to bug_reminder_page.php.

jfitzell

jfitzell

2003-02-27 11:34

reporter   ~0003870

are you sure? they seem to call print_successful_redirect() which calls string_get_bug_view_url() which should get the appropriate bug view page for the user. It doesn't take into account which you were viewing but, honestly, looking at the referrer is a bit of a hack (and won't really work because the referrer will be e.g. bug_resolve_page.php) I personally think swapping between the two is a pretty useless feature. If you want to change, change your preference.

vboctor

vboctor

2003-02-27 11:43

manager   ~0003871

I am not referring to what the reminder form redirects to. In the reminder page itself, under the form you get the bug details and the bugnotes. The bug details are always the simple bug details. It is not dependent on the user settings.

andrew

andrew

2003-03-20 04:24

reporter   ~0004015

Last edited: 2003-03-20 04:27

Here is the fix:

bug_report.php: line 147:

print_bracket_link( string_get_bug_view_url( $t_bug_id ), lang_get( 'view_submitted_bug_link' ) . " $t_bug_id" );

edited on: 03-20-03 04:27

jfitzell

jfitzell

2003-03-20 08:08

reporter   ~0004016

hrm... I don't see how that is a fix for this problem. But it is certainly a fix that needs applying... I can't believe that's been in there since October. I honestly can't imagine how the code got the way it was. Anyway, I've applied this fix in CVS.

andrew

andrew

2003-03-21 01:52

reporter   ~0004019

My fault, skim read the details. This should have been a separate bug.

thraxisp

thraxisp

2005-01-12 20:18

reporter   ~0008988

This is obsolete as 0.19.

Related Changesets

MantisBT: master 468f1907

2003-03-20 02:09

Julian Fitzell


Details Diff
Fix suggested by andrew <andrew@superstructure.co.nz> in issue 0002966 (though not a resolution for that issue)

* bug_report.php: get the vuew page for the current user instead of user 1
(I can't believe that code has been there since October)

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2113 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0002966
mod - bug_report.php Diff File