diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-01-29 21:19:19 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-01-29 21:19:19 +0000 |
commit | d9a2ff01820de84ba92d8802269e9d2a479364f4 (patch) | |
tree | 563d8e7671eccc33f66057a04dca6c7df455cb0b | |
parent | d52b71c7b081a6dba19f5a54ecd6e073d06d90b9 (diff) | |
download | pfsense-d9a2ff01820de84ba92d8802269e9d2a479364f4.zip pfsense-d9a2ff01820de84ba92d8802269e9d2a479364f4.tar.gz |
Allow editing entries that are not system/dynamic ones even though their gateway is specified as dynamic.
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 82b471d..54691ca 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -244,7 +244,7 @@ function enable_change(obj) { <tr> <td width="22%" valign="top" class="vncellreq">Interface</td> <td width="78%" class="vtable"> - <select name="interface" class="formselect" <?php if ($pconfig['dynamic'] == true) echo "disabled"; ?>> + <select name="interface" class="formselect" <?php if ($pconfig['dynamic'] == true && $pconfig['attribute'] == "system") echo "disabled"; ?>> <?php $interfaces = get_configured_interface_with_descr(false, true); foreach ($interfaces as $iface => $ifacename) { @@ -272,7 +272,7 @@ function enable_change(obj) { <tr> <td width="22%" valign="top" class="vncellreq">Gateway</td> <td width="78%" class="vtable"> - <input name="gateway" type="text" class="formfld host" id="gateway" size="40" value="<?php echo $pconfig['gateway']; ?>" <?php if ($pconfig['dynamic'] == true) echo "disabled"; ?>> + <input name="gateway" type="text" class="formfld host" id="gateway" size="40" value="<?php echo $pconfig['gateway']; ?>" <?php if ($pconfig['dynamic'] == true && $pconfig['attribute'] == "system") echo "disabled"; ?>> <br> <span class="vexpl">Gateway IP address</span></td> </tr> <tr> |