Skip to content

Commit f818412

Browse files
committed
Selecting a dnssec algarithm should imply wanting to sign the zone, #6451
1 parent d53109a commit f818412

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

interface/lib/classes/tform_base.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,12 @@ function getHTML($record, $tab, $action = 'NEW') {
560560
foreach($vals as $tvl) {
561561
if(trim($tvl) == trim($k)) $checked = ' CHECKED';
562562
}
563+
$datacheckfields = '';
564+
if (isset($field['data-check-fields'])) {
565+
$datacheckfields = " data-check-fields=\"{$field['data-check-fields']}\"";
566+
}
563567
// $out .= "<label for=\"".$key."[]\" class=\"inlineLabel\"><input name=\"".$key."[]\" id=\"".$key."[]\" value=\"$k\" type=\"checkbox\" $checked /> $v</label>\r\n";
564-
$out .= "<label for=\"".$key.$elementNo."\" class=\"inlineLabel\"><input name=\"".$key."[]\" id=\"".$key.$elementNo."\" value=\"$k\" type=\"checkbox\" $checked /> $v</label>";
568+
$out .= "<label for=\"".$key.$elementNo."\" class=\"inlineLabel\"$datacheckfields><input name=\"".$key."[]\" id=\"".$key.$elementNo."\" value=\"$k\" type=\"checkbox\" $checked /> $v</label>";
565569
if (isset($field['render_inline']) && $field['render_inline'] == 'n') {
566570
$out .= "<br/>\r\n";
567571
}

interface/web/dns/form/dns_soa.tform.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@
302302
'separator' => ',',
303303
'default' => 'ECDSAP256SHA256',
304304
'value' => array('NSEC3RSASHA1' => '7 (NSEC3RSASHA1)','ECDSAP256SHA256' => '13 (ECDSAP256SHA256)'),
305+
'data-check-fields' => 'dnssec_wanted',
305306
'width' => '30',
306307
'maxlength' => '255'
307308
),

0 commit comments

Comments
 (0)