From: Alexander Marx Date: Thu, 7 Feb 2013 12:17:25 +0000 (+0100) Subject: Forward Firewall: changed sortorder of servicedropdown in servicegrouping. X-Git-Tag: v2.15-beta1~286^2~11^2~205 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0013abb07c6dda5f4a67ec2a2025e8d1007c4417;p=ipfire-2.x.git Forward Firewall: changed sortorder of servicedropdown in servicegrouping. catched F5 when editing a host-Now no entry is saved in customhosts table theres only the IP shown (deleted subnet) --- diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index 06522acc19..900928d82c 100755 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -482,7 +482,6 @@ if ($fwhostsettings{'ACTION'} eq 'savehost') if($fwhostsettings{'newhost'} eq 'on'){$count=0;} $customhost{$key}[3] = $count; &General::writehasharray("$confighost", \%customhost); - #$fwhostsettings{'IP'} = $fwhostsettings{'IP'}."/".&General::iporsubtodec($fwhostsettings{'SUBNET'}); undef %customhost; $fwhostsettings{'HOSTNAME'}=''; $fwhostsettings{'IP'}=''; @@ -1269,7 +1268,7 @@ END $Lang::tr{'fwhost cust service'} @@ -1748,9 +1747,10 @@ sub plausicheck &General::readhasharray("$confighost", \%customhost); if (!&checkname(\%customhost)) { - $errormessage=$errormessage."
".$Lang::tr{'fwhost err hostexist'}; + $errormessage.="
".$Lang::tr{'fwhost err hostexist'}; $fwhostsettings{'HOSTNAME'} = $fwhostsettings{'orgname'}; - if ($fwhostsettings{'update'} eq 'on'){$fwhostsettings{'ACTION'}=$edit;} + #if ($fwhostsettings{'update'} eq 'on'){$fwhostsettings{'ACTION'}=$edit;} + $fwhostsettings{'ACTION'}=$edit; } #check if host with this ip already exists if (!&checkip(\%customhost,2))