Skip to content

Commit

Permalink
Fix #12617: Move / Delete operations are not available for resolved i…
Browse files Browse the repository at this point in the history
…ssues.
  • Loading branch information
vboctor committed Jan 9, 2011
1 parent 1cce7f3 commit 97fb89f
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions core/html_api.php
Expand Up @@ -1506,8 +1506,6 @@ function html_button_bug_assign_to( $p_bug_id ) {
* @return null
*/
function html_button_bug_move( $p_bug_id ) {
$t_status = bug_get_field( $p_bug_id, 'status' );

if( access_has_bug_level( config_get( 'move_bug_threshold' ), $p_bug_id ) ) {
html_button( 'bug_actiongroup_page.php', lang_get( 'move_bug_button' ), array( 'bug_arr[]' => $p_bug_id, 'action' => 'MOVE' ) );
}
Expand Down Expand Up @@ -1676,18 +1674,15 @@ function html_buttons_view_bug_page( $p_bug_id ) {
echo '</td>';
}

if( !$t_readonly ) {

# MOVE button
echo '<td class="center">';
html_button_bug_move( $p_bug_id );
echo '</td>';
# MOVE button
echo '<td class="center">';
html_button_bug_move( $p_bug_id );
echo '</td>';

# DELETE button
echo '<td class="center">';
html_button_bug_delete( $p_bug_id );
echo '</td>';
}
# DELETE button
echo '<td class="center">';
html_button_bug_delete( $p_bug_id );
echo '</td>';

helper_call_custom_function( 'print_bug_view_page_custom_buttons', array( $p_bug_id ) );

Expand Down

0 comments on commit 97fb89f

Please sign in to comment.