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

Error translating content with Object Relation Fields

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 5.4.9, 5.4.10
    • Legacy stack
    • php 5.5

    Description

      When editing non-main-language content in the admin a ContextErrorException error is triggered. This only happens if the content in question has an object relation field type as a part of the content type.

      Notice: Undefined property: eZContentObjectAttribute::$languageCode
      

      This appears to happen on eZObjectRelationType::storeObjectAttribute because the eZContentObjectAttribute is not accessed correctly correctly. The case is wrong on the accessor (languageCode vs LanguageCode). Rather than fixing the case though, the attribute() function should be used to access the language code.

      $existingRelations[$attributeTranslation->attribute('language_code')] = (int)$attributeTranslation->attribute( 'data_int' );
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tvharms tvharms
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: