[TASK] DataHandler::getAutoVersionId() should be public 06/17906/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:34:36 +0000 (19:34 +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/17906
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/class.t3lib_tcemain.php

index 720ebd2..4549be3 100644 (file)
@@ -7215,7 +7215,7 @@ class t3lib_TCEmain {
         * @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])) {