Author: jfthomps
Date: Mon Oct 27 16:59:03 2014
New Revision: 1634593

URL: http://svn.apache.org/r1634593
Log:
VCL-174 - NAT - support for sites that have small IP address ranges

computer.php: modified validateResourceData: if $olddata['nathostid'] == '', 
set it to 0 for comparison to $return['nathostid']

Modified:
    vcl/trunk/web/.ht-inc/computer.php

Modified: vcl/trunk/web/.ht-inc/computer.php
URL: 
http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/computer.php?rev=1634593&r1=1634592&r2=1634593&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/computer.php (original)
+++ vcl/trunk/web/.ht-inc/computer.php Mon Oct 27 16:59:03 2014
@@ -1887,6 +1887,8 @@ class Computer extends Resource {
                        $naterror = 1;
                }
                # nat change - check for active reservations
+               if($olddata['nathostid'] == '')
+                       $olddata['nathostid'] = 0;
                if(! $naterror && ($olddata['natenabled'] != 
$return['natenabled'] ||
                   $olddata['nathostid'] != $return['nathostid'])) {
                        $query = "SELECT rq.id "


Reply via email to