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

Public API: defaultValue for Relation FieldType is not honored

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Won't Fix
    • Affects Version/s: Known Issues 5.x Stack, 5.0
    • Component/s: None
    • Environment:

      Operating System: RHEL 62
      PHP Version: 5.3.3
      Database and version:5.1.61
      Browser N/A

      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.

        Issue Links

          Activity

          Petar Spanja (Inactive) logged work - 04/Feb/13 1:37 PM
          • Time Spent:
            1 hour
             

            validating the issue

          André Rømcke logged work - 04/Feb/13 2:17 PM
          • Time Spent:
            15 minutes
             
            <No comment>

            People

            • Assignee:
              Unassigned
              Reporter:
              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

                  Agile