View Issue Details

IDProjectCategoryView StatusLast Update
0008981mantisbtbugtrackerpublic2008-04-19 04:10
ReporterSleePy Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityrandom
Status closedResolutionfixed 
PlatformAppleOSMac os XOS Version10.5.1
Product Version1.1.1 
Fixed in Version1.2.0a1 
Summary0008981: Multiple bug submissions
Description

Sometimes, when submitting a bug, it will submit it multiple times. This only happens with Mantis, Other software I use does not have this issue. I assume this is because protection against multiple form submissions are being done in these software.

Steps To Reproduce

This one is a hard to produce, I don't do anything different than try to submit a bug and click the Submit report. After a few seconds I am refreshed to "Vview Issues" screen. I click My View and I see 3 or sometimes 4 of the exact same bug reports.

Additional Information

I have had this happen in both Firefox 2.0 and 3.0...

TagsNo tags attached.

Activities

vboctor

vboctor

2008-03-21 03:13

manager   ~0017431

Fixed by svn:5131
http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5131&view=rev

The fix is to use javascript to disable the button on click, and hence, it can't be clicked more than once.

There is one issue to note. If the user reports a bug with an error (e.g. missing a mandatory field), clicking back will still have the button is disabled. Clicking refresh will re-enable the button.

I've implemented this for the following forms:

  1. Report Issue
  2. Report Issue Advanced
  3. Update Issue
  4. Update Issue Advanced
  5. Add Issue Note

Better patches are welcome, but I thought this would is a pretty good start.