Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81677

Notice: Array to string conversion for check boxes

$
0
0
Hello,
In Editor 1.2.1, I have a checkbox with options as shown below, where I'm getting an error like:
"
...
Notice: Array to string conversion \DTEditor.mysql.pdo.class.php on line 507
{"id":"inc_2","error":"","fieldErrors":[],"data":{...,"automatic_tracking":"Array" ...}}
...
"

This happen when I click on Edit, select that checkbox in the form and click the Update button, I receive an error message like "An error has ocurred - Please contact the system Administrator-

If I cancel the operation by clicking on
X
and refresh the DataTables page, that column shows up now with the value of "Array"
When querying the database, its value shows up as "Array" as well.

I click on Edit again, the checkbox shows up un-checked, if I click on Update -without touching that checkbox-, the record is properly saved and that columns displays as empty on the DataTables page.

...
{
	"label": "Automatic Tracking",
	"name": "automatic_tracking",
	"type": "checkbox",
	"ipOpts": [
		{
			"label": "",
			"value": "Y"
		}
	]
},
...

Any hint here?

Viewing all articles
Browse latest Browse all 81677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>