Ability to set defaultNewRecord via routing data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Within the eg2 staff admin components, where we are using BasicAdminPageC
This is a proposal to be able to set the default values for a new record via routing data, the same way as done for fieldOrder and readonlyFields.
I propose that we implement support for a defaultNewRecord object in routing modules as follows (this example taken from a need identified in bug 1842297):
{
path: 'config/
component: BasicAdminPageC
data: [{
schema: 'config',
table: 'openathens_
fieldOrder: 'id,org_
}],
}
Changed in evergreen: | |
status: | New → Confirmed |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Proposed implementation and unit test: https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ jclementson/ lp1989348_ defaultNewRecor d_via_routing_ data