Select2 4.0.1
Select2 4.0.1
zajc
Posts: 67Questions: 10Answers: 2
in Bug reports
Editor 1.5.4. Select2 4.0.1 is not working fine with the latest Select2 plugin.
If we try to for example edit row, Select2 type of field doesn't show the saved value just the placeholder.
The plugin works fine with Select2 version 4.0.0.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Thanks for letting me know about this. I've just pushed an update out for the plug-in. Could you try it out and let me know how you get on with it.
Thanks,
Allan
Your fix solves only the error Uninitialized string offset: 0 in php/lib/Editor/Join.php on line 682 when you submit the form with the empty fileds but the main problem is still the same. When you edit the record it doesn't display the saved values instead the placeholder is shown (label="" value="").
Can you give me a link to the page showing the issue please? My local page with Select2 4.0.1 appears to be working okay, but it isn't using all of the options. I'd like to see how you have it configured.
Allan
Here are the examples.
Select2 4.0.0
https://zajc.xyz/hasdjh/cert_pri_400.html
Select2 4.0.1
https://zajc.xyz/hasdjh/cert_pri_401.html
I'm getting "Authentication required" at the moment.
Allan
I have changed the URL. Please refresh my message.
Thanks for the update.
In the
set
function in the plug-in could you change:to be:
I believe that should fix the issue - although I'm surprised about this given there is no mention of it in the Select2 release notes.
Allan
This fix the issue :)