I uploaded more than 10 files via the Filedepot desktop agent successfully, but only shown the first digit of the number at Reports->Incoming files (x). e.g. I have 25 files, but it displays only the "2".
(environment: D6.16, Apache, PHP5.2.12)

CommentFileSizeAuthor
#5 filedepot_countfix.patch983 bytesblainelang

Comments

blainelang’s picture

Assigned: Unassigned » blainelang

Can you verify that you uploaded these files under the same username as you are no logged into Drupal with?
Is it just the count thats wrong and yet you see the files in the incoming view?

artam’s picture

I see all of them in the incoming view, just the count is "wrong" in the left sidebar (if the count is more than 10).

blainelang’s picture

Where all of the files also uploaded (via the desktop agent) using the same site username as you are currently logged into the site as?

artam’s picture

Yes, there's only one user (the superuser, with uid 1).
By the way, i think, the count is correct, the "format" of the number is incorrect.
e.g.:
i see 11 files in the incoming view -> on the left side navigation it displays "1" in brackets (Incoming Files (1));
i see 21 files in the incoming view -> on the left side navigation it displays "2" in brackets (Incoming Files (2));
...
i see 51 files in the incoming view -> on the left side navigation it displays "5" in brackets (Incoming Files (5));
....
and so on.

(sorry for my english... i hope, you understand the problem.)

blainelang’s picture

Status: Active » Needs review
StatusFileSize
new983 bytes

Thanks, that extra information helped and I was able to find the bug quickly.

Attached is a patch that will address the code issue in lib-ajaxserver.php

artam’s picture

Thanks for the patch, the count is OK now!

blainelang’s picture

Status: Needs review » Fixed

CVS updated.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 59c1cdf on master, 8.x-1.x by blainelang:
    Fix for issue #798758 - incoming file count wrong.