From c4f93a0dc58e8a79d5c195760158b0fa48243a55 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 12 Dec 2012 05:52:47 -0500
Subject: [PATCH] Fixed: FS#2573 - APS Reseller cannot see users pakages

---
 interface/web/mail/form/mail_user.tform.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/interface/web/mail/form/mail_user.tform.php b/interface/web/mail/form/mail_user.tform.php
index 16543ca..5ec0cbc 100644
--- a/interface/web/mail/form/mail_user.tform.php
+++ b/interface/web/mail/form/mail_user.tform.php
@@ -134,12 +134,12 @@
 			'searchable' => 2
 		),
 		'quota' => array (
-			'datatype'	=> 'INTEGER',
+			'datatype'	=> 'VARCHAR',
 			'formtype'	=> 'TEXT',
-			'validators'	=> array ( 	0 => array (	'type'	=> 'ISINT',
+			'validators'	=> array ( 	1 => array (	'type'	=> 'ISINT',
 														'errmsg'=> 'quota_error_isint'),
-										1 => array (	'type'	=> 'REGEX',
-														'regex' => '/^([0-9]*)$/',
+										0 => array (	'type'	=> 'REGEX',
+														'regex' => '/^([0-9]{1,})$/',
 														'errmsg'=> 'quota_error_value'),
 									),
 			'default'	=> '-1',

--
Gitblit v1.9.1