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

Public API: defaultValue for Relation FieldType is not honored

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Medium Medium
    • Known Issues 5.x Stack, 5.0
    • None
    • Operating System: RHEL 62
      PHP Version: 5.3.3
      Database and version:5.1.61
      Browser N/A

    • Stetind Sprint 5

    Description

      Using the API, when creating a ContentType with a Relation FieldType attribute (FieldDefinition), the defaultValue property for the FieldDefinition will not be honored, regardless if the value assigned to it is a Content ID (int) or a ContentInfo.

      Steps to Reproduce:To reproduce:

      1. Using the API, create a ContentType with a Relation FieldDefinition
      2. Set the FieldDefinition `defaultValue` property to an existing Content ID or ContentInfo
      3. Verify through the interface that the attribute does not contain a default value.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 15 minutes Time Not Required
                1h 15m