Skip to content

Commit 853f650

Browse files
committed
1 parent f6ee7a1 commit 853f650

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@
110110
'aux' => array (
111111
'datatype' => 'INTEGER',
112112
'formtype' => 'TEXT',
113+
'validators' => array (0 => array ('type' => 'ISINT',
114+
'errmsg'=> 'rr_aux_error_noint'),
115+
),
113116
'default' => '',
114117
'value' => '',
115118
'width' => '30',

interface/web/dns/lib/lang/en_rr.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ $wb["ttl_txt"] = 'TTL';
88
$wb["btn_save_txt"] = 'Save';
99
$wb["btn_cancel_txt"] = 'Cancel';
1010
$wb["rr_data_error_empty"] = 'The data field must not be empty!';
11+
$wb["rr_aux_error_noint"] = 'Preference/priority must be an integer!';
1112
$wb["rr_ttl_error_notpositive"] = 'The TTL must be positive!';
1213
?>

0 commit comments

Comments
 (0)