In the 'browse all patients' page, 'New patient' button often adds multiple patients from one click


I only clicked once and all patients with id's from P0000002-P0000010 were added.

When you actually click on the button, there is a delay, in which you cannot click on anything else on the page, until which several patients get added. This doesn't happen every single time you click on the button.

I have not tested this on 1.3-milestone-4.




Sergiu Dumitriu
December 6, 2016, 6:00 AM

I think this has been fixed, but I've never been able to reproduce it from just one click. I think the problem is that sometimes the browser/OS/mouse driver or whatever wrongfully sends a bunch of clicks instead of just one. Can you test on master if you can still reproduce it?

Andrew Misyura
December 6, 2016, 6:26 AM

can it be that some systems are just very slow, and after a click the user may think the click did no go through (since there are no visible changes) and just clicks again (or some windows users tend to double-click even links which are supposed to be single-clicked - would it correctly only create one patient in that case, assuming the page has not reloaded yet between two rapid clicks?)

Sergiu Dumitriu
December 6, 2016, 6:35 AM

This is the only way I could reproduce it, furiously click on the mouse before the page reloads. And yes, the fix I just committed does just that, disable the button after the first click so that further clicks are just ignored.



Sergiu Dumitriu


Teyden Nguyen



External issue ID


Fix versions

Affects versions