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

Translating objects that have ezuser datatype is not possible

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • 4.4.0beta2
    • 4.3.0, 4.4.0alpha1
    • Misc
    • None

    Description

      As summary of the issue says, translating objects that have ezuser datatype is not possible.

      Due to ezuser datatype being untranslatable, it is being displayed using attribute_view_gui instead of attribute_edit_gui. Because of that, while validating input after publishing or storing the draft of the new translation, the following block returns false due to missing POST parameters and validation fails:

      kernel/classes/datatypes/ezuser/ezusertype.php, line 73:

      {{ if ( $http->hasPostVariable( $base . "data_user_login" . $contentObjectAttribute->attribute( "id" ) ) &&
      $http->hasPostVariable( $base . "data_user_login" . $contentObjectAttribute->attribute( "id" ) ) &&
      $http->hasPostVariable( $base . "data_user_email" . $contentObjectAttribute->attribute( "id" ) ) &&
      $http->hasPostVariable( $base . "data_user_password" . $contentObjectAttribute->attribute( "id" ) ) &&
      $http->hasPostVariable( $base . "data_user_password_confirm" . $contentObjectAttribute->attribute( "id" ) ) )}}

      Steps to reproduce

      1. create an object of any class that has ezuser datatype (default user class for example)
      2. translate it to another language
      3. publish it
      4. validation error pops up "Required data is either missing or is invalid: User account: Input required."

      Attachments

        Activity

          People

            andre1 andre1
            f8f4635f-c125-4f25-94af-5c94e74ef8c1@accounts.ibexa.co Edi Modrić
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: