Skip to content

Commit

Permalink
Revert "Don’t show completely empty notes"
Browse files Browse the repository at this point in the history
After implementing the linking of notes and attachments, attachments
linked to a note without text are not displayed to some users becasue of
the time tracking logic, even if that functionality is not enabled.

This reverts commit 1ed44a9.

Fixes: #26294
  • Loading branch information
cproensa authored and vboctor committed Dec 4, 2019
1 parent b7fe1de commit 645d1c6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/bugnote_api.php
Expand Up @@ -490,12 +490,6 @@ function bugnote_get_all_visible_bugnotes( $p_bug_id, $p_user_bugnote_order, $p_
# If the access level specified is not enough to see time tracking information
# then reset it to 0.
if( !$t_time_tracking_visible ) {
# If the time tracking is the only data in the note, then skip it.
if( is_blank( $t_bugnote->note ) ) {
continue;
}

# otherwise, don't return the time tracking information so that it is not visible.
$t_bugnote->time_tracking = 0;
}

Expand Down

0 comments on commit 645d1c6

Please sign in to comment.