[TASK] DataHandler::getAutoVersionId() should be public 07/17907/2
authorOliver Hader <oliver@typo3.org>
Thu, 31 Jan 2013 18:17:41 +0000 (19:17 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 31 Jan 2013 18:33:55 +0000 (19:33 +0100)
The method getAutoVersionId() in DataHandler/t3lib_TCEmain
should be public. The method is a helper to access the accordant
member variable that get's filled during workspace actions and
thus is useful in hooks as well.

Change-Id: Ie1f55d92b8e72e6ab68a563f0c1c52762239e102
Resolves: #45050
Releases: 6.1, 6.0, 4.7, 4.6, 4.5
Reviewed-on: https://review.typo3.org/17907
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 61f3951..84e189b 100644 (file)
@@ -6942,7 +6942,7 @@ class DataHandler {
         * @param integer $id Uid of the record
         * @return integer
         */
-       protected function getAutoVersionId($table, $id) {
+       public function getAutoVersionId($table, $id) {
                $result = NULL;
                if (isset($this->autoVersionIdMap[$table][$id])) {
                        $result = $this->autoVersionIdMap[$table][$id];