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

List item has default fields when adding with ajax #721

Open
tjuris opened this issue Jan 30, 2020 · 1 comment
Open

List item has default fields when adding with ajax #721

tjuris opened this issue Jan 30, 2020 · 1 comment

Comments

@tjuris
Copy link
Contributor

tjuris commented Jan 30, 2020

New list items have default fields. Fields are correct after saving.

The culprit looks to be in ot_decode, there should be a ! before $obj_matches : https://github.com/valendesigns/option-tree/blob/master/includes/ot-functions-admin.php#L5063

Luckily this function can be overriden.

@feliperinaldi
Copy link

"! before $obj_matches" fixed the issue for me.

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

2 participants