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

Date field in CT app can be saved but not retrieved

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.3.0, 6.2.31
    • 6.2.28
    • None
    • None

    Description

      Steps to reproduce

      1. Configure a content type with a date field
      2. Configure a default app uses that content type
      3. Open configured app and create an item, choose a date value and save the item
      4. Reopen saved item to see that the date field has not been retrieved nor populated
      5. Edit some content, not the date field, then save it
      6. Double check from JCR to see that the date field content has been wiped out to an empty value

      Expected results

      1. Date field should be populated and stored correctly
      2. Do not loose customers' content

      Actual results

      • See above

      Workaround

      • use decoration to use jcrMultiField instead of jcrMultiValueField (on 6.3 one can use multiValueField)
        !content-type:breakOffer
        name: breakOffer-app
        label: Break Offer
        subApps:
          detail:
            form:
              properties:
                dates:
                  $type: jcrMultiField 

      Development notes

      • Logs:
        2023-02-24 14:39:11,416 WARN  .apache.commons.beanutils.converters.DateConverter:     DateConverter does not support default String to 'Date' conversion.
        2023-02-24 14:39:11,417 WARN  .apache.commons.beanutils.converters.DateConverter:     (N.B. Re-configure Converter or use alternative implementation)
        

      Checklists

        Acceptance criteria

        Attachments

          1. breakOffer.yaml
            0.7 kB
            Viet Nguyen
          2. breakOffer-app.yaml
            0.1 kB
            Viet Nguyen

          Issue Links

            Activity

              People

                asiska Adam Siska
                viet.nguyen Viet Nguyen
                Thomas Duffey
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 1h
                      1h