patchphpGroupWare - Patches: patch #3018, Filemanagers Used Space has a...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #3018: Filemanagers Used Space has a wrong value when Quota is given

Submitter:  Thorsten Wiggers <twiggers>
Submitted:  Thu 06 May 2004 07:26:29 AM UTC
   
 
Category:  filemanager Priority:  5 - Normal
Item Group:  None Status:  Done
Privacy:  Public Assigned to:  skwashd
Open/Closed:  Closed

Fri 14 May 2004 01:09:29 AM UTC, comment #1: 

applied- but anyone at probiz could have commited this change.

Cheers

Dave

Dave Hall <skwashd>
Group administrator
Thu 06 May 2004 07:26:29 AM UTC, 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

Thorsten Wiggers <twiggers>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-05-14 skwashd Open/ClosedOpen Closed
2004-05-14 skwashd StatusNone Done
    Assigned toNone skwashd

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code