From 853f650a718b3bc945a2d42e3ddce8eb8fcbbcca Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 30 Nov 2005 17:55:11 +0000
Subject: [PATCH]

---
 interface/web/dns/form/rr.tform.php  | 3 +++
 interface/web/dns/lib/lang/en_rr.lng | 1 +
 2 files changed, 4 insertions(+)

diff --git a/interface/web/dns/form/rr.tform.php b/interface/web/dns/form/rr.tform.php
index f58d1c4f39..1f299260ba 100644
--- a/interface/web/dns/form/rr.tform.php
+++ b/interface/web/dns/form/rr.tform.php
@@ -110,6 +110,9 @@ $form["tabs"]['rr'] = array (
                 'aux' => array (
                         'datatype'        => 'INTEGER',
                         'formtype'        => 'TEXT',
+                        'validators'      => array (0 => array ('type' => 'ISINT',
+                                                                'errmsg'=> 'rr_aux_error_noint'),
+                                                   ),
                         'default'        => '',
                         'value'                => '',
                         'width'                => '30',
diff --git a/interface/web/dns/lib/lang/en_rr.lng b/interface/web/dns/lib/lang/en_rr.lng
index 1a3aba7ee8..a835ac60dc 100644
--- a/interface/web/dns/lib/lang/en_rr.lng
+++ b/interface/web/dns/lib/lang/en_rr.lng
@@ -8,5 +8,6 @@ $wb["ttl_txt"] = 'TTL';
 $wb["btn_save_txt"] = 'Save';
 $wb["btn_cancel_txt"] = 'Cancel';
 $wb["rr_data_error_empty"] = 'The data field must not be empty!';
+$wb["rr_aux_error_noint"] = 'Preference/priority must be an integer!';
 $wb["rr_ttl_error_notpositive"] = 'The TTL must be positive!';
 ?>
\ No newline at end of file
-- 
GitLab