I have a datagrid attached to a dataprocessor. Everything works fine and the update page gets called and rows are updated in the database the first time i change a cell. On subsequent updates to the same cell, if i change the value back to the value it was previously, the datagrid will not update the row. if i change it to something it has never been assigned to sice the grid was initially loaded, the update works fine.
Cell is initially loaded with value of 1.
Then Change cell to 2 - works fine.
Then Change cell to 3 - works fine.
Then Change cell back to 1 - no updates.
Then change cell to 2 - no updates
Then Change to 4 - works fine
Then change to 3 - no updates
Then change to 5 - works fine.
Any help is greatly appreciated.
Which column type was used in the problematic case? Is it one of standard column types or a custom one ?
I am getting the exact same results and I see several other posts on the forum about similar problems. Does anyone know a solution?
In my case, it’s very simple. It’s a checkbox and the value is either 1 or 0. It works with 1. It works with 0, but only the first time. Until I clear my cache and then it starts working again (but just once per value).
Oh, and the php is getting called each time. Also the onAfterUpdate is being called. From what I can tell, everything seems to be working fine, except when you look at the database and see that it is not being updated.
Unfortunately the issue cannot be reproduced locally.
Please, provide with the code of the init of your grid,dataprocessor and the using php code for the data updating.
Here is the example that I have. It is very simple. I’m just updating a check box. No adding, no deleting… and it’s only one field. Thanks for your help.
example.zip (4.36 KB)
Can anyone help me with this?