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

As a developer, I want to have command for cleaning language masks after migrating to v2.3

    Details

      Description

      After migrating eZ Platform to v2.3 which introduced this change there are contents which cannot be accessed due to the wrong language_mask. There should be a command which converts these values taking alwaysAvailable flag and language_code into account.

        Activity

        Hide
        André Rømcke added a comment -

        This command should potentially be a bit more generic, to deal with with all default* properties, as we also had similar issue with defaultSortOrder / defaultSortField which was resolved just recently in v2.3.2: https://github.com/ezsystems/repository-forms/commit/b1e9ad88d6fe27a28787019ee79817bdac583c01

        Logic of the command can be something like:

        • For content types where defaultAlwaysAvailable is true, offer to reset value to true on content in that type (as they will be false if install was affected by bug on this)
        • For content that has a sort field which is what the system (potentially !!) mistakenly used as default Location::SORT_FIELD_NAME, and where that differs from what is defined in defaultSortField, offer to reset sort order and field based on data in content type
        Show
        André Rømcke added a comment - This command should potentially be a bit more generic, to deal with with all default* properties, as we also had similar issue with defaultSortOrder / defaultSortField which was resolved just recently in v2.3.2: https://github.com/ezsystems/repository-forms/commit/b1e9ad88d6fe27a28787019ee79817bdac583c01 Logic of the command can be something like: For content types where defaultAlwaysAvailable is true, offer to reset value to true on content in that type (as they will be false if install was affected by bug on this) For content that has a sort field which is what the system (potentially !!) mistakenly used as default Location::SORT_FIELD_NAME , and where that differs from what is defined in defaultSortField , offer to reset sort order and field based on data in content type

          People

          • Assignee:
            Unassigned
            Reporter:
            Konrad Oboza
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: