[MGNLUI-4270] DateField: Default value is not picked up on existing (but empty) field Created: 18/Aug/17 Updated: 13/Sep/17 Resolved: 13/Sep/17 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | forms |
| Affects Version/s: | 5.5.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Christian Ringele | Assignee: | Unassigned |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||
| Date of First Response: | |||||||||||||
| Description |
|
Situation: Result: Reason: |
| Comments |
| Comment by Antti Hietala [ 07/Sep/17 ] |
|
cringele, the defaultValue only applies to new items. For example, if you have an existing tour and you add a date field into the dialog the tour will not get a default date. But create a completely new tour and it will get the default. If you want to add default values to existing items you need to populate them with a Groovy script or set a custom transformer on the field that always sets a default value when the user opens the dialog. |
| Comment by Christian Ringele [ 13/Sep/17 ] |
|
ahietala Ahh I see, so summarised the rational of this behaviour is: |