From 37b29231e47a0c4458dc1c15d98588f16f07e1e2 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Thu, 06 Aug 2015 03:18:44 -0400 Subject: [PATCH] - don't set password via remoting if field is empty --- interface/web/dns/form/dns_a.tform.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/interface/web/dns/form/dns_a.tform.php b/interface/web/dns/form/dns_a.tform.php index b7def7d..cd5a3eb 100644 --- a/interface/web/dns/form/dns_a.tform.php +++ b/interface/web/dns/form/dns_a.tform.php @@ -129,7 +129,11 @@ 'ttl' => array ( 'datatype' => 'INTEGER', 'formtype' => 'TEXT', - 'default' => '86400', + 'validators' => array ( 0 => array ( 'type' => 'RANGE', + 'range' => '60:', + 'errmsg'=> 'ttl_range_error'), + ), + 'default' => '3600', 'value' => '', 'width' => '10', 'maxlength' => '10' -- Gitblit v1.9.1