View Issue Details

IDProjectCategoryView StatusLast Update
0006939mantisbtbugtrackerpublic2016-08-28 01:12
ReporterKlappie Assigned Tocproensa  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version1.3.1Fixed in Version1.3.1 
Summary0006939: Number of Private notes visible for reporters
Description

An DEVELOPER is able to add some private note(s) to an issue.

When the REPORTER checks the page "View Issues" they will notice that there are notes added to the issue. When they open that issue, they can not read the contents of the private notes (thank god).

The private notes should not be counted if the active user is an REPORTER. Only the public notes should then be counted.

TagsNo tags attached.

Relationships

has duplicate 0012782 closedatrol Bugnotes numbers in View Issues page include private notes of other users 

Activities

Klappie

Klappie

2006-04-14 10:00

reporter   ~0012503

I'm using version 1.0.1.

Also, if the REPORTER checks the "Change Log" they will see the person who handled the issue. We do not want to show this information to the user.

augustin_trancart

augustin_trancart

2008-09-05 05:55

reporter   ~0019315

I noticed this also using version 1.1.2

Is it possible to show to a user only the number of notes he is able to see ?

md

md

2008-09-30 04:06

reporter   ~0019475

Acknowledge both points; some option to hide the person who handled the issue and a fix for the number of displayed notes

Dentxinho

Dentxinho

2012-02-27 16:53

reporter   ~0031337

I can handle this.

I need to know if the private notes should be ignored (as they never existed) or just not to be counted.
This is because of the last_modified column returned by filter_cache_result. If i ignore the private bugnotes and the last modified bugnote is private, the result will be the last modified public one. (I didn't go any further yet to see if this last_modified column is ever used).

Dentxinho

Dentxinho

2012-02-27 20:28

reporter   ~0031339

Last edited: 2012-07-03 08:57

PR sent https://github.com/mantisbt/mantisbt/pull/43

lbredenkamp

lbredenkamp

2015-03-18 10:51

reporter   ~0049260

Is this issue still being worked on? It seems it is still present in mantis 1.2.19 and I would very much appreciate a solution.

cproensa

cproensa

2015-09-17 14:42

developer   ~0051496

PR: https://github.com/mantisbt/mantisbt/pull/650/files

cproensa

cproensa

2016-08-18 20:00

developer   ~0053861

new PR: https://github.com/mantisbt/mantisbt/pull/856

Related Changesets

MantisBT: master-1.3.x 0b175c81

2015-09-17 02:54

cproensa

Committer: dregad


Details Diff
Count only visible notes

Fix counting the number of notes to skip those that are not visible
according to the user's access levels (private notes).

Bugnote count is built alongside bugnote statistics.

This commit rewrites the statistics generation to account for user
access level for each bug and each project.

Removes duplicate logic (sql queries) from:
- bug_api.php: function bug_get_bugnote_stats()
- filter_api.php: function filter_get_bug_rows()

Fixes: 0006939
Affected Issues
0006939
mod - core/bug_api.php Diff File
mod - core/filter_api.php Diff File