Menu

#76 Project summary document count inaccurat

closed-wont-fix
nobody
None
5
2002-10-01
2002-09-13
Mark Moline
No

The document count on the project summary page
inaccurately includes directories. The code
in /projects/Proj_view/index.php
has a SQL statement (line 295) as follows:

$sql="select count(*) from documents where
aproj=$proj";

To exclude directories, change to the following:

$sql="select count(*) from documents where aproj=$proj
and type != 'directory'";

This same SQL statement is
in /projects/Proj_Delete/index.php (line 42)

Changing it here would change the count on the warning
regarding deletion of a project. I did not change it in
mine (mostly because it is minor).

Discussion

  • Bogdan Stancescu

    Logged In: YES
    user_id=341406

    That was the intended behaviour. Someone may be preparing
    for an upload or some projadmin may be creating the document
    structure and you couldn't tell by looking the parent
    directory of the whole structure. True, that results in an
    inaccurate *document* count per se, but we considered that
    to be better than not counting them at all (and there's no
    room in the table to be explicit).

     
  • Bogdan Stancescu

    • status: open --> closed-wont-fix
     

Log in to post a comment.