diff --git a/lib/NGCP/Panel/Controller/Device.pm b/lib/NGCP/Panel/Controller/Device.pm index 8729b0ad73..04ce6a2aa3 100644 --- a/lib/NGCP/Panel/Controller/Device.pm +++ b/lib/NGCP/Panel/Controller/Device.pm @@ -1195,7 +1195,7 @@ sub dev_field_config :Chained('/') :PathPart('device/autoprov/config') :Args() { $id =~ s/^([^\=]+)\=0$/$1/; $id = lc $id; $id =~ s/\-[a-z]+$//; - $id =~ s/\-$//g; + $id =~ s/\-//g; =pod my $yealink_key;