ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Possible bug with json encoding

simelas 14 Oct, 2018
Hi Bob, Hi Max,

Possible bug:

when duplicating an existing record after having set id or aid to empty such as to force copy; jsoen ( json encoding) escape the content of the fields related to multiple checkboxes.

"[\"EN\"]" instead of expected ["EN"]

jsonen works as expected if id or aid is not empty.

This occurs only in CF6 with textfield in the database. Same setting in CCV6 works as expected ( e.g. copy the field and correctly set json).

Any idea ?

Simelas
simelas 26 Oct, 2018
Partial solution found consists in adding a custom code with php code json_encode prior to saving action, and not using the special fields with "field_name/json" in the save data action.

(However one may expect to be able to use the special field within the save data action).

(Read data action performs correctly when using "field_name/json" in the special fields .)

simelas
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com