From 5c67f75bdb5f5daaf06e077285e767dba44244fe Mon Sep 17 00:00:00 2001
From: xaver <xaver@ispconfig3>
Date: Sun, 15 Jan 2012 06:37:16 -0500
Subject: [PATCH] Added template validation ssh_chroot -> requierd by clients task#1989

---
 interface/web/client/form/client_template.tform.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/interface/web/client/form/client_template.tform.php b/interface/web/client/form/client_template.tform.php
index 0f93fcb..df15e69 100644
--- a/interface/web/client/form/client_template.tform.php
+++ b/interface/web/client/form/client_template.tform.php
@@ -392,6 +392,12 @@
 		'ssh_chroot' => array (
 			'datatype'	=> 'VARCHAR',
 			'formtype'	=> 'CHECKBOXARRAY',
+			'validators'	=> array (
+			  0 => array (
+			    'type'=> 'NOTEMPTY',
+			    'errmsg'=> 'ssh_chroot_notempty'
+			  ),
+			),
 			'default'	=> '',
 			'separator' => ',',
 			'valuelimit' => 'client:ssh_chroot',

--
Gitblit v1.9.1