Bug #72092
closed
Story #69617: FormEngine bugs
RTE element tsconfig wrong if negative pid value (new element below other)
Added by Andreas Allacher almost 9 years ago.
Updated about 7 years ago.
Category:
FormEngine aka TCEforms
Description
If an element is inserted below another element the pid value is negative which currently results in RTE Tsconfig not being extracted from current page.
The issue is part of this code:
$this->pidOfPageRecord = $table === 'pages' && MathUtility::canBeInterpretedAsInteger($row['uid']) ? (int)$row['uid'] : (int)$row['pid'];
BackendUtility::fixVersioningPid($table, $row);
$this->pidOfVersionedMotherRecord = (int)$row['pid'];
However, as a workspace can also have a negative value (-1) I guess it is necessary to check if new and if pidOfPageRecord is not different from pidOfVersionedMotherRecord before calling getPagesTSconfig
This is also an issue with RTE tsconfig for linkhandler as the same value (pidOfPageRecord) is passed on to the LinkHandler.
- Category changed from RTE (rtehtmlarea + ckeditor) to FormEngine aka TCEforms
- Target version deleted (
7.6.1)
- Parent task set to #69617
- Status changed from New to Resolved
- Target version set to 8.0
Fixed through issue #72751 / changeset 52b3f406c3ad16808c66cadd54d53657e4c2dce8.
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF