diff --git a/lib/Thruk/Controller/api_conf.pm b/lib/Thruk/Controller/api_conf.pm index 8505143..fcd32f6 100644 --- a/lib/Thruk/Controller/api_conf.pm +++ b/lib/Thruk/Controller/api_conf.pm @@ -429,7 +429,7 @@ sub display_editor { my $name = $page_type; $name =~ s/s$//; my $mode = "create"; - if ($c) { + if ($endpoint) { $mode = "modify"; } my $json_text = '';