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

Creating a class with eZPage field attribute with default values will raise exception

    XMLWordPrintable

Details

    Description

      Creating an class that has the ezpage attribute with the default values will raise an exception

      (public api)
      1 - create new ContentTypeCreateStruct
      2 - add new field definition:
          - type: ezpage
          - name: test 
          ( leave all other values as default )
      3 - attempt to save the class
      4 - verify that an exception was raised:
          - eZ\Publish\Core\Base\Exceptions\ContentTypeFieldDefinitionValidationException: ContentType FieldDefinitions did not validate
      

      the contents of the ezpage field definition

      eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct Object
      (
          [fieldTypeIdentifier] => ezpage
          [identifier] => ezpage
          [names] => Array
              (
                  [eng-GB] => ezpage
              )
      
          [descriptions] => Array
              (
                  [eng-GB] => This is an ezpage test
              )
      
          [fieldGroup] => 
          [position] => 15
          [isTranslatable] => 
          [isRequired] => 
          [isInfoCollector] => 
          [validatorConfiguration] => 
          [fieldSettings] => Array
              (
                  [defaultLayout] => 
              )
      
          [defaultValue] => 
          [isSearchable] => 
      )
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            marcos.loureiro-obsolete@ez.no Marcos Loureiro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: