Inline mode including Non Modified Fields in local storage "ajax" method

Inline mode including Non Modified Fields in local storage "ajax" method

webusr91webusr91 Posts: 12Questions: 5Answers: 0

Hi,

This used to work as expected until Editor version 1.6.1.

I recently tried to move to newer version of Editor and noticed this issue. After downloading earlier versions of Editor, and trying with these, noticied that this issue has been occuring since Editor version 1.6.2

Attached HTML file has full test case code for this issue.

When using local ajax method with Editor, with inline edit,

1) Until DataTable Editor 1.6.1, here "d.data" variable in "ajax" method only used to have Changed Column Name and Value

2) Fom DataTable Editor 1.6.2, here here "d.data" variable in "ajax" method is having extra variables example "salary: "170750", even though i am editing only "Position" column

This would be issue, since i have written several switch conditions based on column that has changed.


Note: This issue goes away if i provide initial data for "salary" as

"salary": "170750" (number in quotes -- as string)

But this would be issue, since this is actually number and Datatables seems to correctly take this value and display it correctly.


Also i have also provided type: "num", for columns -> data: "salary", type: "num"

But this still does not have any affect, and Editor is still including non modified column in ajax method for changed colmns list.

Any suggestions to recolve this issue will be helpful.

Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,722Questions: 1Answers: 10,108 Site admin

    Hi,

    Thanks for flagging this up. This is a re-occurrence of this issue due to the strict type checking used by Editor. 1.6.4 partly (but not fully) introduced loose type checking - 1.6.5, which I hope to release later today, will resolve it fully.

    Allan

  • webusr91webusr91 Posts: 12Questions: 5Answers: 0

    Thanks for the quick response. Will test it once the new version is released.

    Thank you

  • webusr91webusr91 Posts: 12Questions: 5Answers: 0

    https://datatables.net/download/index

    When Editor is selected, it is still downloading DataTables Editor v1.6.4

    Can you please upgrade this to DataTables Editor v1.6.5

    Thanks

  • allanallan Posts: 61,722Questions: 1Answers: 10,108 Site admin
    Answer ✓

    Yes, it will be shortly. See this thread which is pinned at the top of the forums.

    Until then you can download 1.6.5 directly from the Editor download page.

    I don't expect it to be long before the download builder is back in sync.

    Allan

  • webusr91webusr91 Posts: 12Questions: 5Answers: 0

    Tested with Editor 1.6.5. It's working good. Thank you for fixing this.

This discussion has been closed.