I'm using the CVS version on my site because I didn't want to be using an extremely old, but stable version. Everything seems to be working fine except this one bit, which unfortunately is pretty major.
I enter bugs into the database fine. And I can view them. However, if I go to update them, add a comment, or alter anything, the changes are made (an e-mail is sent out) and then immediately I get a 'That bug does not exist' error. However, it is still shown on the index page and is still in the database just as before. Yet whenever I try and click on to view it, I get 'That bug does not exist'.
I've looked at the PHP and commented out this:
if (!ereg('^[0-9]+$',$bugid) or !$row = $db->getRow(sprintf($QUERY['bug-show-bug'], $bugid, $restricted_projects)))
{
//show_text($STRING['bugbadnum'],true);
//return;
}
This then returns an SQL error:
DB Error: unknown error
SELECT tracker_bug.status_id, tracker_bug.bug_id FROM tracker_bug, tracker_bug_dependency WHERE bug_id = 2 [nativecode=1052 ** Column: 'bug_id' in where clause is ambiguous]
I can't figure out what the problem is from here. Is this fixed in a newer CVS version (I can't see due to the SF CVS problems) or can you help?
Thanks,
David Mytton
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm using the CVS version on my site because I didn't want to be using an extremely old, but stable version. Everything seems to be working fine except this one bit, which unfortunately is pretty major.
I enter bugs into the database fine. And I can view them. However, if I go to update them, add a comment, or alter anything, the changes are made (an e-mail is sent out) and then immediately I get a 'That bug does not exist' error. However, it is still shown on the index page and is still in the database just as before. Yet whenever I try and click on to view it, I get 'That bug does not exist'.
I've looked at the PHP and commented out this:
if (!ereg('^[0-9]+$',$bugid) or !$row = $db->getRow(sprintf($QUERY['bug-show-bug'], $bugid, $restricted_projects)))
{
//show_text($STRING['bugbadnum'],true);
//return;
}
This then returns an SQL error:
DB Error: unknown error
SELECT tracker_bug.status_id, tracker_bug.bug_id FROM tracker_bug, tracker_bug_dependency WHERE bug_id = 2 [nativecode=1052 ** Column: 'bug_id' in where clause is ambiguous]
I can't figure out what the problem is from here. Is this fixed in a newer CVS version (I can't see due to the SF CVS problems) or can you help?
Thanks,
David Mytton
I found the problem. Related to my own templating changes.
David