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

eZContentObjectVersion::removeVersions() argument processing

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 3.9.1
    • None
    • Operating System: Linux
      PHP Version: 4.4.6

    Description

      eZContentObjectVersion::removeVersions() has some trouble processing its arguments.

      The first issue is with the status list. Not only it prevents removing the archived versions (when explicitely specified), but it also forbids specifying anything else than the default statuses set (see the strange array_intersect logic).

      The other issue is with the check on the limit argument. It is correctly used later in the code, but the check forbids the use of the default (false) value.

      My patch fixes the above issues. Please note that it hasn't been extensively tested.

      Attachments

        Activity

          People

            cyberwolf cyberwolf
            waba waba
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: