Skip to content

Commit 4562888

Browse files
author
Till Brehm
committed
Fixed Issue #4016 cannot set DNS servers in Client Template.
1 parent b67678c commit 4562888

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

interface/web/client/form/client_template.tform.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,23 @@
635635
'value' => array(''),
636636
'name' => 'default_dnsserver'
637637
),*/
638+
'dns_servers' => array (
639+
'datatype' => 'VARCHAR',
640+
'formtype' => 'MULTIPLE',
641+
'separator' => ',',
642+
'default' => '1',
643+
'datasource' => array ( 'type' => 'CUSTOM',
644+
'class'=> 'custom_datasource',
645+
'function'=> 'client_servers'
646+
),
647+
'validators' => array ( 0 => array ( 'type' => 'CUSTOM',
648+
'class' => 'validate_client',
649+
'function' => 'check_used_servers',
650+
'errmsg'=> 'dns_servers_used'),
651+
),
652+
'value' => '',
653+
'name' => 'dns_servers'
654+
),
638655
'limit_dns_zone' => array (
639656
'datatype' => 'INTEGER',
640657
'formtype' => 'TEXT',

0 commit comments

Comments
 (0)