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

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Backlog Backlog
          32d 16h 40m 1 Vidar Langseid 22/Oct/12 11:18 AM
          Backlog Backlog InputQ InputQ
          4m 53s 1 Vidar Langseid 22/Oct/12 11:23 AM
          InputQ InputQ Backlog Backlog
          1d 33m 1 Vidar Langseid 23/Oct/12 11:56 AM
          Backlog Backlog Development Development
          103d 23h 31m 1 Petar Spanja (Inactive) 04/Feb/13 10:28 AM
          Development Development Development Done Development Done
          3h 12m 1 Petar Spanja (Inactive) 04/Feb/13 1:41 PM
          Development Done Development Done Closed Closed
          35m 40s 1 André Rømcke 04/Feb/13 2:16 PM
          Closed Closed Reopened Reopened
          25s 1 André Rømcke 04/Feb/13 2:17 PM
          Reopened Reopened Closed Closed
          22s 1 André Rømcke 04/Feb/13 2:17 PM

            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