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

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

diff --git a/interface/web/client/form/client_template.tform.php b/interface/web/client/form/client_template.tform.php
index 0f93fcb095..df15e690d8 100644
--- a/interface/web/client/form/client_template.tform.php
+++ b/interface/web/client/form/client_template.tform.php
@@ -392,6 +392,12 @@ $form["tabs"]['limits'] = array (
 		'ssh_chroot' => array (
 			'datatype'	=> 'VARCHAR',
 			'formtype'	=> 'CHECKBOXARRAY',
+			'validators'	=> array (
+			  0 => array (
+			    'type'=> 'NOTEMPTY',
+			    'errmsg'=> 'ssh_chroot_notempty'
+			  ),
+			),
 			'default'	=> '',
 			'separator' => ',',
 			'valuelimit' => 'client:ssh_chroot',
-- 
GitLab