Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-4270

DateField: Default value is not picked up on existing (but empty) field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not an issue
    • Affects Version/s: 5.5.5
    • Fix Version/s: None
    • Component/s: forms
    • Labels:
      None

      Description

      Situation:
      The component exists with a DateField in its dialog. But the field value is empty (for example a new added field or never chosen a date to store). So there exists no correlating property.

      Result:
      The method info.magnolia.ui.form.field.factory.DateFieldFactory.getConfiguredDefaultValue() is never called.

      Reason:
      In the method
      {{info.magnolia.ui.form.field.factory.AbstractFieldFactory.setPropertyDataSourceAndDefaultValue(Property)}
      the boolean expression ((ItemAdapter) item).isNew() is returning false.

        Checklists

        Acceptance criteria

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                cringele Christian Ringele
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                    Checklists

                    Bug DoR
                    DoD