Skip to content

Commit

Permalink
Fix selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenordin committed Mar 23, 2017
1 parent 7ead590 commit d64fdf6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/Thruk/Controller/api_conf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1286,14 +1286,9 @@ sub hosts {
# Delete mode
if ( $mode eq "delete" ) {

# This case is first dialog
if ($submit eq "Submit" and $host) {
$host_page .=
display_delete_confirmation( 'host', 'hosts', @hosts );
}

# This case is delete request
elsif ($confirm eq "Confirm" and $host) {
# This case is delete request via api
if ($confirm eq "Confirm" and $host) {
my $cascade = '';
if ( $cascading eq "true" ) {
$cascade = '?cascade=1';
Expand All @@ -1306,6 +1301,11 @@ sub hosts {
$host_page .= display_back_button( $mode, 'hosts' );
}

# This case is confirmation dialog
elsif ($host) {
$host_page .=
display_delete_confirmation( 'host', 'hosts', @hosts );
}
# Main dialog box of the delete mode for hosts page
else {
$host_page .= $q->p('Select one or more hosts to delete.');
Expand Down

0 comments on commit d64fdf6

Please sign in to comment.