EnviDat / ckanext-composite

Extension for structured metadata fields based on ckanext-scheming and ckanext-repeating
GNU Affero General Public License v3.0
5 stars 20 forks source link

multiple_select within subfield does not render correctly #9

Open bstutsky opened 5 years ago

bstutsky commented 5 years ago

Hello!

I'm seeing multiple_select fields not render correctly when in a subfield. I'm using CKAN 2.8.1. I have attached the json I used to reproduce the issue (multi_select.txt, txt because github doesn't let me upload json) and an image of what I'm seeing (multi-select.png).

My development.ini has:

ckan.plugins = stats text_view image_view recline_view scheming_datasets composite

scheming.dataset_schemas = ckanext.scheming:ckan_dataset.json
                           ckanext.scheming:multi_select.json
scheming.presets = ckanext.scheming:presets.json
                   ckanext.composite:presets.json
scheming.dataset_fallback = true

Thanks!

multi_select

multi_select.txt

bstutsky commented 5 years ago

I changed this: https://github.com/bstutsky/ckanext-composite/pull/1/files

Then I added "form_snippet": "multiple_select", to the subfield and it renders correctly.

espona commented 5 years ago

Thanks Ben, I will take a look at it, I never used multiselect within a subfield.