[MGNLUI-6183] defaultValue in m5 dialog shown but not saved Created: 03/Sep/20  Updated: 03/Sep/20  Resolved: 03/Sep/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bartosz Staryga Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File Screen Recording 2020-09-03 at 09.33.41.mp4    
Issue Links:
Cloners
clones MGNLUI-5325 Support defaultValue in fields of new... Closed
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

 Description   

Version 6.2.2

With old dialog syntax defaultValue is shown correctly but not saved.
When value is set as required dialog allows saving as default value is shown, but is not really saved to JCR.

In recording the issue.

Dialog:

wide: true
form:
  tabs:
    - name: tabMain
      label: Main
      fields:
        - name: fieldTypeText
          fieldType: text
          defaultValue: fieldTypeText
          required: true
        - name: classCheckboxFieldDefinition
          class: info.magnolia.ui.form.field.definition.CheckboxFieldDefinition
          defaultValue: true
          type: Boolean
          required: true
        - name: classTextFieldDefinition
          class: info.magnolia.ui.form.field.definition.TextFieldDefinition
          defaultValue: classTextFieldDefinition
          required: true

actions:
  commit:
    class: info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition
  cancel:
    class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition

Generated at Mon Feb 12 09:33:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.