View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008357 | mantisbt | time tracking | public | 2007-09-13 12:19 | 2008-08-11 09:41 |
Reporter | Sergiodf | Assigned To | daryn | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.1.0a4 | ||||
Fixed in Version | 1.2.0a2 | ||||
Summary | 0008357: "Total time for issue" is shown even for users under threshold | ||||
Description | For a bug with time tracking data, in bug details page, at botom of "Notes" box a message is shown: "Total time for issue = ##:##" (this is OK). But I have configured config_inc.php as follows: --8<--------------------------------------
But if you set an user as "updater", the message is even shown for him. | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
Attached Files | total_time_threshold.diff (471 bytes)
--- bugnote_view_inc.php.orig 2008-02-01 11:54:46.000000000 +0000 +++ bugnote_view_inc.php 2008-01-30 10:21:28.000000000 +0000 @@ -210,7 +210,7 @@ <?php } # end for loop - if ( $t_total_time > 0 ) { + if ( $t_total_time > 0 && access_has_bug_level( config_get( 'time_tracking_view_threshold' ), $f_bug_id ) ) { echo '<tr><td colspan="2">', sprintf ( lang_get( 'total_time_for_issue' ), db_minutes_to_hhmm( $t_total_time ) ), '</td></tr>'; } } # end else | ||||
I think the bug is in bugnote_view_inc.php, ca. 20 lines from the end: It is now
But schould be
Can anybody verify this? |
|
Yup, that looks right to me. Patch to fix (against 1.1.1) attached. |
|
Patch works great for me. |
|
Checked over patch. Looks good. Applied to trunk. |
|
MantisBT: master 50704ec7 2008-04-21 11:01 Details Diff |
Apply patch for bug 0008357 - "Total time for issue" is shown even for users under threshold git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5186 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0008357 |
|
mod - bugnote_view_inc.php | Diff File |