Answers.Body: <p>Not sure if it's the same problem but it could be the submitOnce problem which has a temporary fix in 5.14.1 and a fuller fix pending but is an easy change you can make:</p>
  
  <p>See <a href="https://github.com/civicrm/civicrm-core/pull/14545/files" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/14545/files</a></p>
  
  <p>i.e. remove the "submitOnce" line.</p>
  
  <p>Briefly the popup version of activities conflicts with the extra javascript that submitOnce adds. The problem was reproduced on firefox - just create an activity using the popup version of e.g. a meeting, from the contact's record.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-24T20:00:43.070Z
Answers.Text: What's the story behind this fix? I couldn't track it back and anything I could find didn't seem to be relevant to this problem.  Or maybe I was lost in the Git forest...
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-24T20:03:55.620Z
Answers.Text: I purposely left out the history because it's been flogged to death already, but I'll update the answer a bit.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-24T19:27:23.007Z
Answers.LastActivityDate: 2019-06-24T20:38:24.173Z
Answers.LastEditDate: 2019-06-24T20:38:24.173Z
Answers.UserDisplayName: Demerit
Body: <p>I have a client who has noticed that some activities that they create are being duplicated. I can see solid evidence of exact duplicates - apart from the id in the activity record.  In the activity table the 2 ids are consecutive, in the activity_contact table they are almost consecutive. The contents of the activity records are exactly the same - the created_date and modified_date are the same time to the second.  The client creates a lot of activities - there are about 220K activity rows and they do have quite a few users working simultaneously updating Civi.  This seems like a bug to me - any suggestions as to what else the problem might be?  This installation is running 5.13.5 with Drupal 7.67</p>
  
Tags: <activity>
Title: Why are duplicate activities being created?
ThreadText: # Why are duplicate activities being created?
  
  (Asked by: username_0 on 2019-06-24)
  
  I have a client who has noticed that some activities that they create are being duplicated. I can see solid evidence of exact duplicates - apart from the id in the activity record. In the activity table the 2 ids are consecutive, in the activity\_contact table they are almost consecutive. The contents of the activity records are exactly the same - the created\_date and modified\_date are the same time to the second. The client creates a lot of activities - there are about 220K activity rows and they do have quite a few users working simultaneously updating Civi. This seems like a bug to me - any suggestions as to what else the problem might be? This installation is running 5.13.5 with Drupal 7.67
  
  **Tags:** activity
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-06-24. Score: 4
  
  Not sure if it's the same problem but it could be the submitOnce problem which has a temporary fix in 5.14.1 and a fuller fix pending but is an easy change you can make:
  
  See <https://github.com/civicrm/civicrm-core/pull/14545/files>
  
  i.e. remove the "submitOnce" line.
  
  Briefly the popup version of activities conflicts with the extra javascript that submitOnce adds. The problem was reproduced on firefox - just create an activity using the popup version of e.g. a meeting, from the contact's record.
  
  > **Comments:**
  > **username_0**: What's the story behind this fix? I couldn't track it back and anything I could find didn't seem to be relevant to this problem.  Or maybe I was lost in the Git forest...  
  > **username_1**: I purposely left out the history because it's been flogged to death already, but I'll update the answer a bit.  
  
  ---
  
  