Fixed bug 5269: wsol_preview.php does not scroll to content element
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Fri, 23 Mar 2007 08:56:06 +0000 (08:56 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Fri, 23 Mar 2007 08:56:06 +0000 (08:56 +0000)
Fixed bug 4953: Preview in Workspaces Module for Contentelements

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2196 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/alt_clickmenu.php

index 42891e2..e870d4b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-23     Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug 5269: wsol_preview.php does not scroll to content element
+       * Fixed bug 4953: Preview in Workspaces Module for Contentelements
+
 2007-03-22  Karsten Dambekalns  <karsten@typo3.org>
 
        * typo3/sysext/adodb: Update to upstream version 4.94.
index 3f37dcb..b66e04e 100755 (executable)
@@ -271,7 +271,10 @@ class clickMenu {
                                // View
                        if (!in_array('view',$this->disabledItems))     {
                                if ($table=='pages')    $menuItems['view']=$this->DB_view($uid);
-                               if ($table==$GLOBALS['TYPO3_CONF_VARS']['SYS']['contentTable']) $menuItems['view']=$this->DB_view($this->rec['pid'],'#'.$uid);
+                               if ($table==$GLOBALS['TYPO3_CONF_VARS']['SYS']['contentTable']) {
+                                       $ws_rec = t3lib_BEfunc::getRecordWSOL($table,$this->rec['t3ver_oid']);
+                                       $menuItems['view']=$this->DB_view($ws_rec['pid']);
+                               }
                        }
 
                                // Edit: