phpgroupware-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [patch #3018] Filemanagers Used Space has a wrong


From: Thorsten Wiggers
Subject: [Phpgroupware-tracker] [patch #3018] Filemanagers Used Space has a wrong value when Quota is given
Date: Thu, 06 May 2004 03:26:34 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040316

This mail is an automated notification from the patch tracker
 of the project: phpGroupWare.




/**************************************************************************/
[patch #3018] Full Item Snapshot:

URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=3018>
Project: phpGroupWare
Submitted by: Thorsten Wiggers
On: Thu 05/06/04 at 07:26

Category:  filemanager
Priority:  5 - Normal
Resolution:  None
Assigned to:  None
Originator Email:  
Status:  Open


Summary:  Filemanagers Used Space has a wrong value when Quota is given

Original Submission:  The reason for this is, the quota you can give a user in 
the admin section is based on MegaByte. The filemanger uses the value out of 
the dropdown box, which could be i.e. 1 (MB), and does not convert it to MB. So 
the filemanger calculates with 1 Byte. 
Fix:
Line 99 in filemanger index.php
change
$quota=$quota = $GLOBALS['phpgw']->accounts->data['quota']; 
to 
$quota=$quota = $GLOBALS['phpgw']->accounts->data['quota']*1024*1024;
or 
$GLOBALS['phpgw']->accounts->data['quota']*1048576;
Then everything is ok again.

I'm also not sure if it really has to be "$quota=$quota=" or if it's a copy 
paste error

Greeting Thorsten 











For detailed info, follow this link:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3018>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]