clem - 2003-01-23

I've just installed 0.9.1 of phpbt for evaluation by our dev team but I can't get the attachments function to work.

It must be something i'm doing rather than a bug since no one else seems to have this problem.

Environment: Redhat 7.2 with Apache 1.3.27-2, PHP 4.1.2-7.3.6 and PostgreSQL 7.2.3-5.73

Problem: The error "That bug does not exist" is always displayed when I try to up load an attachment.

The test which produces this output starts on line 136 of attachment.php because $bugid no longer has a value. But surly the function show_attachment_form shouldn't be executed at all on the second pass?

Stop me if i'm getting this all wrong, but it looks to me as if when we first load attachment.php, the script passes through all but the last test and so runs show_attachment_form. But when we fill in the values of "description" and "attachment" and click "Upload attachment", the test on line 165 should then pass and run  add_attachment on the second pass?

Is this problem something to do which the environment and the way variable like HTTP_POST_VARS are being handled?

Any help would be very much appreciated as I need to come up with a bug tracking system asap and phpbt look great otherwise.

Thanks,

Colin