Project

General

Profile

Actions

Bug #16963

closed

Preview in Workspaces Module for Contentelements

Added by Chris Zepernick almost 18 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
Workspaces
Target version:
-
Start date:
2007-02-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

IF someone uses the clickmenu in workspaces to preview a record, the wrong link is generated for this clickmenu for the "view" item (for a tt_content record ).
This is caused through the fact the the alt.clickmenu.php uses the records pid also for content elements in workspaces. In Workspaces the pid for content elements is always "-1". So page "-1" could not be found.

Same Error in 4.0 - 4.0.4 and 4.1 rc 1!!

Solution to this :

change in method "printDBClickMenu" in "typo3/alt_clickmenu.php:

if ($table==$GLOBALS['TYPO3_CONF_VARS']['SYS']['contentTable']) {
$menuItems['view']=$this->DB_view($this->rec['pid'],'#'.$uid);
}

to this code:

if ($table==$GLOBALS['TYPO3_CONF_VARS']['SYS']['contentTable']) {
if($this->rec['pid'] == 1){
$this
>rec_alt = t3lib_BEfunc::getRecordWSOL($table,$this->rec['t3ver_oid']);
$menuItems['view']=$this->DB_view($this->rec_alt['pid'],'#'.$uid);
}else{
$menuItems['view']=$this->DB_view($this->rec['pid'],'#'.$uid);
}
}
(issue imported from #M4953)

Actions

Also available in: Atom PDF