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

Refactor Version History Limit handling

    XMLWordPrintable

Details

    Description

      In 4 different places, the same algorithm is used when we need to know the version limit for a given content class:
      1. fetch the default limit (DefaultVersionHistoryLimit)
      2. fetch the limit by class (VersionHistoryClass)
      3. convert the class id / identifiers list we got in 2. to an array of numerical ID
      4. check if the value we got matches a given class ID. If it does, use the limit for this class rather than the default one.

      We should refactor this to a method in eZContentClass. Given a content class ID / identifier / eZContentClass, this method returns the version limit.

      Attachments

        Activity

          People

            bd bd
            bd bd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: