From 1e656e8adccae48639e3ce66a50b85017cadf75b Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Mon, 7 Dec 2015 14:36:31 +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 Signed-off-by: Michael Tremer --- 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 7636d1ec59..15989bd27d 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.39.2