Project

General

Profile

Actions

Bug #24032

closed

The content object type EDITPANEL is missing, causing pi_getEditPanel to break.

Added by Björn Pedersen over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2010-11-12
Due date:
% Done:

0%

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

Description

pi_getEditPanel return a blank string, as EDITPANEL is not available as cObj anymore.

the pibase function can be rewritten as:
function pi_getEditPanel($row='',$tablename='',$label='',$conf=Array()) {
$panel='';
if (!$row || !$tablename) {
$row = $this->internal['currentRow'];
$tablename = $this->internal['currentTable'];
}

if ($GLOBALS['TSFE']->beUserLogin)    {
// Create local cObj if not set:
if (!is_object($this->pi_EPtemp_cObj)) {
$this->pi_EPtemp_cObj = t3lib_div::makeInstance('tslib_cObj');
$this->pi_EPtemp_cObj->setParent($this->cObj->data,$this->cObj->currentRecord);
}
// Initialize the cObj object with current row
$this->pi_EPtemp_cObj->start($row,$tablename);
$this->pi_EPtemp_cObj->data=$this->internal;
// Setting TypoScript values in the $conf array. See documentation in TSref for the EDITPANEL cObject.
if (empty($conf['allow'])){
$conf['allow'] = 'edit,new,delete,move,hide';
}
$panel = $this->pi_EPtemp_cObj->editPanel('',$conf);
}
if ($panel)    {
if ($label) {
return '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top">'.$label.'</td><td valign="top" align="right">'.$panel.'</td></tr></table>';
} else return ''.$panel.'';
} else return $label;
}
(issue imported from #M16364)

Files

16364.diff (3.36 KB) 16364.diff Administrator Admin, 2010-11-17 21:00
Actions

Also available in: Atom PDF