Skip to content

Commit

Permalink
Update model.php
Browse files Browse the repository at this point in the history
  • Loading branch information
twa127 authored Jul 19, 2020
1 parent f4b0f22 commit 7708245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@
<div class="form-group" class="control-label"><label>'.$lang['network_primary'].'</label>
<select class="form-control input-sm" type="text" id="n_primary" name="n_primary">
<option value=0>No</option>
<option value=1>Yes</option>
<option selected value=1>Yes</option>
</select>
<div class="help-block with-errors">
</div>
Expand Down Expand Up @@ -1087,7 +1087,7 @@
function change(value){
var jArray = <?php echo json_encode($rowArray); ?>;
var valuetext = value;
document.getElementById("n_primary").value = jArray[value]['primary'];
document.getElementById("n_primary").value = jArray[value]['primary_interface'];
document.getElementById("n_mac").value = jArray[value]['mac_address'];
document.getElementById("n_hostname").value = jArray[value]['hostname'];
document.getElementById("n_ip").value = jArray[value]['ip_address'];
Expand Down

0 comments on commit 7708245

Please sign in to comment.