Projekt

Obecné

Profil

Chyba #893 » device_add.php.patch

Opravný patch - Ondřej Fibich, 2014-03-04 23:06

Zobrazit rozdíly:

devices_add.php Locally Modified (Based On LOCAL)
<?php if (!empty($connection_request_model)): ?>
// add mac from request
if ((default_iface >= 0) && (i == default_iface))
if ((default_iface >= 0) && ((i - start_index) == default_iface))
{
auto_fill = true;
html_buffer.push('value="<?php echo $connection_request_model->mac_address ?>" ');
......
html_buffer.push(']" ');
<?php if (!empty($connection_request_model)): ?>
// add mac from request
if ((default_iface >= 0) && (i == default_iface))
// add ip from request
if ((default_iface >= 0) && ((i - start_index) == default_iface))
{
html_buffer.push('value="<?php echo $connection_request_model->ip_address ?>" ');
}
......
<?php if (!empty($connection_request_model)): ?>
// add mac from request
if ((default_iface >= 0) && (i == default_iface))
if ((default_iface >= 0) && ((i - start_index) == default_iface))
{
html_buffer.push('class="subnet_fill_in_connection_request_model_value" ');
}
......
html_buffer.push('<a href="#" class="device_add_detail_button get_connected_to_device_and_iface');
<?php if (!empty($connection_request_model)): ?>
// enable getting on connection request (MAC and subnet aready filled in)
if (i != default_iface)
if ((i - start_index) != default_iface)
{
html_buffer.push(' dispNone');
}
    (1-1/1)