Commit 5d00d278 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Possible warning on getRecordTitle

Resolves: #69653
Releases: master
Change-Id: I0fd8546ec865770657e8937f7151ff378eaf6d9e
Reviewed-on: http://review.typo3.org/43176


Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
parent 7871233c
......@@ -997,7 +997,7 @@ class EditDocumentController implements \TYPO3\CMS\Core\Http\ControllerInterface
if (!$this->storeTitle) {
$this->storeTitle = $this->recTitle
? htmlspecialchars($this->recTitle)
: BackendUtility::getRecordTitle($table, $formData['databaseRow'], TRUE);
: BackendUtility::getRecordTitle($table, FormEngineUtility::databaseRowCompatibility($formData['databaseRow']), TRUE);
}
$this->elementsData[] = array(
......
......@@ -14,6 +14,7 @@ namespace TYPO3\CMS\Backend\Form\Container;
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Backend\Form\Utility\FormEngineUtility;
use TYPO3\CMS\Backend\Template\DocumentTemplate;
use TYPO3\CMS\Backend\Utility\IconUtility;
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
......@@ -97,7 +98,7 @@ class OuterWrapContainer extends AbstractContainer {
$newOrUid = ' <span class="typo3-TCEforms-recUid">[' . htmlspecialchars($row['uid']) . ']</span>';
$recordLabel = BackendUtility::getRecordTitle($table, $row, TRUE, FALSE);
$recordLabel = BackendUtility::getRecordTitle($table, FormEngineUtility::databaseRowCompatibility($row), TRUE, FALSE);
if ($table === 'pages') {
$label = $languageService->sL('LLL:EXT:lang/locallang_core.xlf:labels.editPage', TRUE);
$pageTitle = sprintf($label, $tableTitle, $recordLabel);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment