Details
-
Bug
-
Resolution: Fixed
-
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.