Skip to content

Commit

Permalink
put in a stopgap measure for bug report adding to preserve consistency
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@31 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Dec 6, 2000
1 parent 08c8504 commit a9d9412
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions report_add.php3
Expand Up @@ -55,11 +55,13 @@
'$f_additional_info' )";
$result = mysql_query( $query );

### MAJOR BUG!!! WHAT IF MULTIPLE REPORTS AT SAME TIMES?!?!?
### FIX ME### FIX ME### FIX ME### FIX ME### FIX ME### FIX ME
### Get the id of the text information we just inserted
### NOTE: this is not 100% gurrantted to be the correct one.
### It will be 99.9% of them time but it is not guarrnteed.
### Looking for an elegant workaround w/o having to edit tables
$query = "SELECT id
FROM $g_mantis_bug_text_table
WHERE description='$f_description'
ORDER BY id DESC
LIMIT 1";
$result = mysql_query( $query );
Expand Down

0 comments on commit a9d9412

Please sign in to comment.