completed chained select issue

blindmime
@blindmime
10 years ago
772 posts
I have a chained select field in the jrBlog form called blog_media. The 0 options are a list of album media (cassette, cd, vinyl, etc.). The 1 options are years (pre 1980, 1980, 1981, etc.). All the 0 options have the same 1 options.

The issue I'm seeing is that blog_media_1's value for 1996 is "16" and the value for 1982 is "2". The dropdown in the form displays "1996" but the page source shows this: jrChainedSelect_get('blog_media','blogmedia','1','Cassette','16') and "16" is the value for $blog_media_1 when displayed on the site.
updated by @blindmime: 03/12/15 02:41:03AM
brian
@brian
10 years ago
10,149 posts
Is the "0" option showing correctly and it is only the "1" option that is getting the wrong value?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
10 years ago
772 posts
Yes, the 0 option is showing correctly. This screenshot showing a blog list has media and year displayed next to the category. Where it says "Cassette 16" it should read "Cassette 1996". I tried entering "1982" and it displays "Cassette 2".
blogs.jpg
blogs.jpg  •  113KB


updated by @blindmime: 01/19/15 08:01:25AM
brian
@brian
10 years ago
10,149 posts
OK - I'm going to guess it is returning the index for the selected option instead of the value.

I'm checking that out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
10 years ago
772 posts
It does appear to be something like that.
brian
@brian
10 years ago
10,149 posts
This should be fixed now in Chained Select 1.1.2 - update and let me know if you see any issues.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
10 years ago
772 posts
It seems to be working now.

Thanks!
brian
@brian
10 years ago
10,149 posts
blindmime:
It seems to be working now.

Thanks!

No problem!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags