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

    • Icon: Bug Bug
    • Resolution: Not an issue
    • Icon: Major Major
    • None
    • 5.5.5
    • forms
    • None

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD