Author: jfthomps
Date: Wed Aug 19 19:32:34 2015
New Revision: 1696654

URL: http://svn.apache.org/r1696654
Log:
VCL-900 - Empty error box displayed on computer page with private DHCP and 
invalid server IP

computer.php: modified AJgenerateDHCPdata: updated JSON returned if private and 
invalid $mnip to use key of errormsg instead of errmsg

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=1696654&r1=1696653&r2=1696654&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/computer.php (original)
+++ vcl/trunk/web/.ht-inc/computer.php Wed Aug 19 19:32:34 2015
@@ -4654,7 +4654,7 @@ class Computer extends Resource {
                if($type == 'private') {
                        $mnip = processInputVar('mnip', ARG_STRING);
                        if(! validateIPv4addr($mnip)) {
-                               sendJSON(array('status' => 'error', 'errmsg' => 
'invalid IP address submitted'));
+                               sendJSON(array('status' => 'error', 'errormsg' 
=> 'invalid IP address submitted'));
                                return;
                        }
                        $ipprefix = 'private';


Reply via email to