Skip to content

Commit 5db55c0

Browse files
author
Florian Schaal
committed
Incorrect names of fields in DNS DMARC form (Fixes #4316)
1 parent c1d4814 commit 5db55c0

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

interface/web/dns/dns_dmarc_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function onShowEnd() {
9494
$this->id = 1;
9595
$old_data = strtolower($rec['data']);
9696
$app->tpl->setVar("data", $old_data);
97-
if ($rec['active'] == 'Y') $app->tpl->setVar("active", "CHECKED");
97+
if ($rec['active'] == 'Y') $app->tpl->setVar("active", "CHECKED"); else $app->tpl->setVar("active", "UNCHECKED");
9898
$dmarc_rua = '';
9999
$dmarc_ruf = '';
100100
$dmac_rf = '';

interface/web/dns/templates/dns_dmarc_edit.htm

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
5151
<div class="form-group">
5252
<label class="col-sm-2 control-label control-label-plain"></label>
5353
<div class="col-sm-1">
54-
<input type="checkbox" value="1" id="dmarc_fo0" name="dmarc_fo0" {tmpl_var name='dmarc_fo1'}/>
54+
<input type="checkbox" value="1" id="dmarc_fo1" name="dmarc_fo1" {tmpl_var name='dmarc_fo1'}/>
5555
</div>
5656
<div class="col-sm-3 input-sm">
5757
{tmpl_var name='dmarc_fo1_txt'}
@@ -97,7 +97,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
9797
<div class="form-group">
9898
<label class="col-sm-2 control-label">{tmpl_var name='dmarc_rf_txt'}</label>
9999
<div class="col-sm-1">
100-
<input type="checkbox" value="1" id="dmarc_rf_afrf" name="dmarc_fo0" {tmpl_var name='dmarc_rf_afrf'}/>
100+
<input type="checkbox" value="1" id="dmarc_rf_afrf" name="dmarc_rf_afrf" {tmpl_var name='dmarc_rf_afrf'}/>
101101
</div>
102102
<div class="col-sm-3 input-sm">
103103
{tmpl_var name='dmarc_rf_afrf_txt'}
@@ -136,17 +136,11 @@ <h1><tmpl_var name="list_head_txt"></h1>
136136
<select name="dmarc_sp" id="dmarc_sp" class="form-control">{tmpl_var name='dmarc_sp'}</select>
137137
</div>
138138
</div>
139-
<div class="form-group">
140-
<label for="ttl" class="col-sm-2 control-label">{tmpl_var name='ttl_txt'}</label>
141-
<div class="col-sm-3">
142-
<input type="text" name="ttl" id="ttl" value="{tmpl_var name='ttl'}" class="form-control" />
143-
</div>
144-
</div>
145139

146140
<div class="form-group">
147141
<label class="col-sm-2 control-label">{tmpl_var name='active_txt'}</label>
148142
<div class="col-sm-3">
149-
{tmpl_var name='active'}
143+
<input type="checkbox" value="1" id="active" name="active" {tmpl_var name='active'} />
150144
</div>
151145
</div>
152146

0 commit comments

Comments
 (0)