Notice: Array to string conversion for check boxes
Notice: Array to string conversion for check boxes
agustin_garciaromero
Posts: 42Questions: 0Answers: 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 [quote]X[/quote] 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.
[code]
...
{
"label": "Automatic Tracking",
"name": "automatic_tracking",
"type": "checkbox",
"ipOpts": [
{
"label": "",
"value": "Y"
}
]
},
...
[/code]
Any hint here?
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 [quote]X[/quote] 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.
[code]
...
{
"label": "Automatic Tracking",
"name": "automatic_tracking",
"type": "checkbox",
"ipOpts": [
{
"label": "",
"value": "Y"
}
]
},
...
[/code]
Any hint here?
This discussion has been closed.