Skip to content

Commit

Permalink
Hide field for key subtype when $show_key_subtype is false (#6608)
Browse files Browse the repository at this point in the history
Co-authored-by: Finn <finn@acceleratenetworks.com>
  • Loading branch information
thefinn93 and Finn committed Apr 10, 2023
1 parent 09d5108 commit 13c25f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/devices/device_edit.php
Expand Up @@ -1608,9 +1608,11 @@
echo "</select>\n";
echo "</td>\n";

echo "<td align='left'>\n";
echo " <input class='formfld' type='text' name='device_keys[".$x."][device_key_subtype]' style='width: 120px;' maxlength='255' value=\"".escape($row['device_key_subtype'])."\"/>\n";
echo "</td>\n";
if($show_key_subtype) {
echo "<td align='left'>\n";
echo " <input class='formfld' type='text' name='device_keys[".$x."][device_key_subtype]' style='width: 120px;' maxlength='255' value=\"".escape($row['device_key_subtype'])."\"/>\n";
echo "</td>\n";
}

if (permission_exists('device_key_line')) {
echo "<td valign='top' align='left' nowrap='nowrap'>\n";
Expand Down

0 comments on commit 13c25f7

Please sign in to comment.