-
Notifications
You must be signed in to change notification settings - Fork 177
Open
Description
Hi! :)
In certain cases, changes to a multiple_checkbox are not saved.
How to reproduce:
- Create a schema with a multiple_checkbox
- Create a dataset and check some boxes
- Edit the dataset and uncheck all the boxes
The last action has no effect. This happens because the /edit/ endpoint calls package_patch instead of package_update.
ckanext-scheming/ckanext/scheming/views.py
Line 184 in 8646a9d
| complete_data = get_action('package_patch')(None, data_dict) |
Since package_patch has to be used, since multiple start_form_page can be specified, a reasonable fix would be to have the browser send the entire form, including an empty list for each of the empty multiple_checkbox.
Metadata
Metadata
Assignees
Labels
No labels