rackem
Well-Known Member
I save JSON data to a text field using some Form PHP. For example,
{"p1":28,"p2":29,"s1":5,"s2":4,"t_id":1,"g_id":1}
However, if that record is ever edited later, the JSON example above is changed to
{"p1":28,"p2":29,"s1":5,"s2":4,"t_id":1,"g_id":1}
which obviously won't work in a json_decode(). I also tried a Field element and got the same results.
My element's edit & view ACL is set to nobody. I am just using the element to backup the form info to compare against to check if any edits were made.
Is this intended behavior? Is there a way to prevent Fabrik from changing this data?
{"p1":28,"p2":29,"s1":5,"s2":4,"t_id":1,"g_id":1}
However, if that record is ever edited later, the JSON example above is changed to
{"p1":28,"p2":29,"s1":5,"s2":4,"t_id":1,"g_id":1}
which obviously won't work in a json_decode(). I also tried a Field element and got the same results.
My element's edit & view ACL is set to nobody. I am just using the element to backup the form info to compare against to check if any edits were made.
Is this intended behavior? Is there a way to prevent Fabrik from changing this data?