Skip to main content
Inspiring
May 24, 2021
Question

data is not saving to the right record sometimes

  • May 24, 2021
  • 2 replies
  • 167 views

I have an application that runs on CF 2018. This issue happens with Chrome but I don't know if it would or wouldn't happen with other browsers. 

 

The app uses ORM and ajax to load records that are browsed with arrows. So, let's say an order has 10 items, so users click on arrows to go to item 1, 2, etc. The item page has a fillable form that's loaded without page refresh using ajax for existing items.

 

The issue that seems to be random that I haven't been able to replicate myself but I've seen it happen with users:

 

Sometimes the data from the form on item 4 is saved to item 3. 

 

Form submit is triggered anytime any input is changed. The save is done by the primary key in the table being updated. This happens very rarely but it does somehow. I also have an audit trail going of every change and I can see that user didn't duplicate those records from one item to another. 

 

Please advise on what to test or look for. Maybe it's some setting in cf admin? I've checked the code and tried to replicate this issue with many use cases haven't been able to replicate it. 

This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
May 25, 2021

Could you please share the code. Otherwise, it would be like you describing a picture. 🙂

Inspiring
May 24, 2021

the example with items numbers is just an example. It happens with different item numbers. However, it's always consistent with items beign next to each other like 4 and 5 or 1 and 2.