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

field autocomplete + clone #1033

Open
batosai opened this issue Dec 15, 2016 · 0 comments
Open

field autocomplete + clone #1033

batosai opened this issue Dec 15, 2016 · 0 comments

Comments

@batosai
Copy link

batosai commented Dec 15, 2016

Autocompletion with the clone type results in an error. After analyzing the code, I contact that in clone mode an empty value is sent to the value method of the RWMB_Clone class awaiting an array. This is due to $ _POST [$ field ['id'] which does not exist because the autocomplete returns nothing if it is empty, this field is created by javascript in case of selection.

file inc/meta-box.php l208

To solve this by waiting for evolution, the solution is pass its field group, then to add its field autocomplete inside with another field of type hidden without value (not pollute db)

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