Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on save checkbox, radio and dropdown values #3

Open
Jorgenh opened this issue Sep 24, 2020 · 0 comments
Open

Error on save checkbox, radio and dropdown values #3

Jorgenh opened this issue Sep 24, 2020 · 0 comments

Comments

@Jorgenh
Copy link

Jorgenh commented Sep 24, 2020

error-on-save

When adding a value and saving it the error as shown above in the attachment occurs. The error log shows the following lines:

INSERT INTO `modx_formalicious_answers` (`field_id`, `name`, `rank`, `published`, `selected`, `subfield_id`) VALUES (368, 'test', 1, 1, 0, 0)
Array
(
    [0] => 22007
    [1] => 1366
    [2] => Incorrect integer value: '' for column `xxxxx`.`modx_formalicious_answers`.`subfield_id` at row 1
)

It seems that somehow the value of '0' gets replaced by an empty string.
Altering the default value doesn't make a difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant