Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21036

Fallback default value of some of the FieldTypes can not be used to create Content

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 5.1, 5.2-dev
    • Component/s: None
    • Labels:
    • Sprint:
      Aconcagua Sprint 1, Aconcagua Sprint 2

      Description

      Fallback default value returned by the getEmptyValue() method of some of the FieldTypes will produce an error if used in creation of Content.
      Exception will be thrown by FieldType::acceptValue().

      While the intention of this method is not to provide a default empty value for creation of Content (null can be used instead), nothing prevents user to use it in such a way.

      Proposed: update FieldType implementations so that acceptValue() can process such a value.

        Issue Links

          Activity

          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved
          Show
          Petar Spanja (Inactive) added a comment - Fixed in ezpublish-kernel/master: https://github.com/ezsystems/ezpublish-kernel/commit/e00807640796d3f37b4ad0e18af3d532c7f04b4f
          Show
          Petar Spanja (Inactive) added a comment - Pull request: https://github.com/ezsystems/ezpublish-kernel/pull/429

            People

            • Assignee:
              Unassigned
              Reporter:
              Petar Spanja (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 2 hours, 15 minutes
                4d 2h 15m

                  Agile