Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#390] Don't put api version in context when creating datasets in web ui
The form_to_db_schema() methods of IDatasetForm plugins were not getting called when creating datasets in the web interface, if the IDatasetForm plugin inherits from DefaultDatasetForm. The reason was that DefaultDatasetForm's form_to_db_schema() method deliberately doesn't call the method if the dataset is being created via the API, and the package controller's new_resources() and new_metadata() methods (for the new three-stage dataset creation) put the API version in the context, so DefaultDatasetForm thinks it's being used over the API. Change the package controller to not put the API version in the context. Fixes #390.
- Loading branch information