Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: madz on October 15, 2006, 10:26:09 PM

Title: Quota becomes "Array" when moving/deleting
Post by: madz on October 15, 2006, 10:26:09 PM
Hi guys, congratulations for the good work, roundcube is an impressive webmail solution compared to the "beta" status !
I found a bug (in beta 2 and svn rev. 360) so i registered there to help: when you delete or move a message, quota image will be replaced by "Array", which is normal because in program/steps/mail the following line (line 76) is wrong:
$commands .= sprintf("this.set_quota('%s');\n", $IMAP->get_quota()); get_quota returns an array from the imap class.
So I've tried to replace that line:
$commands .= sprintf("this.set_quota('%s');\n", rcmail_quota_display(Array('display' => 'image'))); And the quota image is back.

However i'm not sure of the array parameter (might be in a global that i didn't see).
Keep up the good worl !
Title: Re: Quota becomes "Array" when moving/deleting
Post by: marin on November 06, 2006, 06:25:37 AM
Thank you for the patch, it works fine :)
Just to add its file move_del.inc you have to edit in the program/steps/mail dir, although its obvious :)