From cbda30058c0f61ae2afbd9085afcf841f32751a5 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 27 Jan 2009 11:50:52 -0500
Subject: [PATCH] Fixed: FS#431 - jailkit users cannot login

---
 interface/web/client/form/client.tform.php |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/interface/web/client/form/client.tform.php b/interface/web/client/form/client.tform.php
index 8be3de8..1124c7e 100644
--- a/interface/web/client/form/client.tform.php
+++ b/interface/web/client/form/client.tform.php
@@ -301,12 +301,11 @@
 			'datatype'	=> 'INTEGER',
 			'formtype'	=> 'SELECT',
 			'default'	=> '1',
-			'datasource'	=> array ( 	'type'	=> 'SQL',
-										'querystring' => "SELECT template_id,template_name FROM client_template WHERE template_type ='m'",
-										'keyfield'=> 'template_id',
-										'valuefield'=> 'template_name'
+			'datasource'	=> array ( 	'type'	=> 'CUSTOM',
+										'class'=> 'custom_datasource',
+										'function'=> 'master_templates'
 									 ),
-			'value'		=> array('0' => 'custom')
+			'value'		=> ''
 		),
 		'template_additional' => array (
 			'datatype'	=> 'VARCHAR',

--
Gitblit v1.9.1