Skip to content

Commit

Permalink
Fix bug for delete of hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenordin committed Mar 22, 2017
1 parent 0f510d5 commit 7ead590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Thruk/Controller/api_conf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1287,13 +1287,13 @@ sub hosts {
if ( $mode eq "delete" ) {

# This case is first dialog
if ( not defined($confirm) and $host =~ m/\..*\./ ) {
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 =~ m/\..*\./ ) {
elsif ($confirm eq "Confirm" and $host) {
my $cascade = '';
if ( $cascading eq "true" ) {
$cascade = '?cascade=1';
Expand Down

0 comments on commit 7ead590

Please sign in to comment.