From 5b04e92d814d85ec738ba8c7290b4d7db0735f02 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Mon, 7 Dec 2015 14:35:49 +0100 Subject: [PATCH] BUG10993: fix errormessage when editing static routes When editing existing static routes and clicking on apply button, there was an errormessage saying that this route is already in use. Now the errormessage is only displayed if a new route has the same ip than an existing one. Signed-off-by: Alexander Marx --- html/cgi-bin/routing.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/routing.cgi b/html/cgi-bin/routing.cgi index 7636d1ec5..15989bd27 100644 --- a/html/cgi-bin/routing.cgi +++ b/html/cgi-bin/routing.cgi @@ -149,7 +149,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'add'}) { $temp[2] ='' unless defined $temp[2]; # not always populated $temp[3] ='' unless defined $temp[2]; # not always populated #Same ip already used? - if($temp[1] eq $settings{'IP'}){ + if($temp[1] eq $settings{'IP'} && $settings{'KEY1'} eq ''){ $errormessage = $Lang::tr{'ccd err irouteexist'}; last; } -- 2.47.2