Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow initial values in group form#5345

Merged
wardi merged 3 commits into
ckan:masterfrom
DataShades:initial-group-values
Apr 23, 2020
Merged

Allow initial values in group form#5345
wardi merged 3 commits into
ckan:masterfrom
DataShades:initial-group-values

Conversation

@smotornyuk
Copy link
Copy Markdown
Member

Package create form picks values from the query string as an initial value for fields. This PR replicates that behavior for a group create form

@amercader amercader added the WIP label Apr 16, 2020
@smotornyuk
Copy link
Copy Markdown
Member Author

smotornyuk commented Apr 17, 2020

Example of this feature for packages(you need to be logged in on demo.ckan.org) - https://demo.ckan.org/dataset/new?title=a&name=b&notes=c&url=d&author=e

Group form just ignores query string - https://demo.ckan.org/group/new?title=a . But with this PR you'll see that title field contains a

And this works only for creation forms, not edit forms

@smotornyuk smotornyuk removed the WIP label Apr 17, 2020
@wardi wardi self-assigned this Apr 23, 2020
@wardi wardi merged commit e59afbb into ckan:master Apr 23, 2020
@smotornyuk smotornyuk deleted the initial-group-values branch April 23, 2020 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants