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)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | filedepot_countfix.patch | 983 bytes | blainelang |
Comments
Comment #1
blainelang commentedCan 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?
Comment #2
artam commentedI see all of them in the incoming view, just the count is "wrong" in the left sidebar (if the count is more than 10).
Comment #3
blainelang commentedWhere all of the files also uploaded (via the desktop agent) using the same site username as you are currently logged into the site as?
Comment #4
artam commentedYes, 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.)
Comment #5
blainelang commentedThanks, 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
Comment #6
artam commentedThanks for the patch, the count is OK now!
Comment #7
blainelang commentedCVS updated.