-
Notifications
You must be signed in to change notification settings - Fork 25
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
Massive issues when putting ajax-populated box in a Repeater field #11
Comments
Yes, unfortunately, this plugin is not compatible with field type |
@rubengc Is it possible that you still have the interest in this plugin? |
Hi there From a year I didn't use this library since I switched to Select2 instead Anyway, if you send any PR with bug fixes I will approve it |
Started working at #14 |
I did it, seems that there was a lot of issues and one of them is using |
@Mte90 Thanks a lot for your work! It is finished and should be working, correct? Since the pull request is still open after all this time, I tried merging it into the code myself, but for some reason I'm still having some issues. I'm using a single term search field inside a repeater. No errors in the console upon field entry or updating post. When updating post, the fields get saved and I can retrieve data with get_post_meta just fine, but upon reload, the fields are displayed as empty. When updating the post again, the data is resaved as empty as well. This is a pretty big problem, as you would manually need to re-enter all the repeater content every time you need to update something in the post, or otherwise the data would be lost. Any idea? I'm guessing the fields are simply not filled in the admin via AJAX or something like they should. PS: Perhaps the problem is with how I'm merging your code, though. This issue appears when I manually copy the files from your last commit ('fixed frontend') and overwrite the base plugin with them. However, when I actually clone the repo from here https://github.com/Mte90/cmb2-field-ajax-search/tree/repeatable I'm back to the initial issue with the console error and no saving. After switching to 'repeatable' branch and pulling from there (though it was already up to date), I started experiencing this - after selecting a term from the ajax dropdown, it was immediately transformed into the term ID, and not saved on publish. I'm so confused... Perhaps you could send me a zip with the working plugin, if it's indeed fixed? |
This Mte90@674f27a is not the last commit, this is the latest one Mte90@716920f You can see at https://github.com/rubengc/cmb2-field-ajax-search/pull/14/files the code changes of my branch. My pr fix that issue, if @rubengc can merge it will be the best. |
I tried the files from Mte90/cmb2-field-ajax-search@716920f, but with those I have the last issue I described (the ID transform one). When I click on the term, it gets instantly renamed into the term ID inside the field (e.g 6) and doesn't get saved to db. |
I don't know I am not using the plugin right now and I don't have any issue reported. |
Aye, trying to. Unfortunately I'm a little out of my depth here as I'm not a backend dev. |
Whenever creating a group with repeatable fields, I cannot get the the ajax fields to work properly.
I am able to select an option, but when I click on the text, I get an ugly error and the value does not get saved to the database. Has anyone else come across this?
The text was updated successfully, but these errors were encountered: