Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master-1.3.x'
Browse files Browse the repository at this point in the history
Conflicts:
	bug_update_page.php
  • Loading branch information
dregad committed Nov 26, 2016
2 parents 718093e + c8c4aa2 commit 1a54789
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions bug_update_page.php
Expand Up @@ -109,7 +109,7 @@
$t_show_date_submitted = in_array( 'date_submitted', $t_fields );
$t_show_last_updated = in_array( 'last_updated', $t_fields );
$t_show_reporter = in_array( 'reporter', $t_fields );
$t_show_handler = in_array( 'handler', $t_fields );
$t_show_handler = in_array( 'handler', $t_fields ) && access_has_bug_level( config_get( 'view_handler_threshold' ), $t_bug_id );
$t_show_priority = in_array( 'priority', $t_fields );
$t_show_severity = in_array( 'severity', $t_fields );
$t_show_reproducibility = in_array( 'reproducibility', $t_fields );
Expand Down Expand Up @@ -323,30 +323,34 @@
if( $t_show_handler || $t_show_due_date ) {
echo '<tr>';

$t_spacer = 2;
$t_spacer = 0;

# Assigned To
echo '<th class="category"><label for="handler_id">' . lang_get( 'assigned_to' ) . '</label></th>';
echo '<td>';
if ( $t_show_handler ) {
# Assigned To
echo '<th class="category"><label for="handler_id">' . lang_get( 'assigned_to' ) . '</label></th>';
echo '<td>';

if( access_has_project_level( config_get( 'update_bug_assign_threshold', config_get( 'update_bug_threshold' ) ) ) ) {
echo '<select ' . helper_get_tab_index() . ' id="handler_id" name="handler_id" class="input-sm">';
echo '<option value="0"></option>';
print_assign_to_option_list( $t_bug->handler_id, $t_bug->project_id );
echo '</select>';
if( access_has_project_level( config_get( 'update_bug_assign_threshold', config_get( 'update_bug_threshold' ) ) ) ) {
echo '<select ' . helper_get_tab_index() . ' id="handler_id" name="handler_id" class="input-sm">';
echo '<option value="0"></option>';
print_assign _to_option_list( $t_bug->handler_id, $t_bug->project_id );
echo '</select>';
} else {
echo $t_handler_name;
}

echo '</td>';
} else {
echo $t_handler_name;
$t_spacer += 2;
}

echo '</td>';

if( $t_show_due_date ) {
# Due Date
echo '<th class="category"><label for="due_date">' . lang_get( 'due_date' ) . '</label></th>';

if( bug_is_overdue( $t_bug_id ) ) {
echo '<td class="overdue">';
} else {
} else {
echo '<td>';
}

Expand All @@ -369,8 +373,9 @@
}

# spacer
echo '<td colspan="', $t_spacer, '">&#160;</td>';

if( $t_spacer > 0 ) {
echo '<td colspan="', $t_spacer, '">&#160;</td>';
}
echo '</tr>';
}

Expand Down

0 comments on commit 1a54789

Please sign in to comment.