Skip to content
Snippets Groups Projects

Fix negativ pid when doing a positioned insert

Merged Marco Huber requested to merge mhuber84/tinymce4_rte:negativpid into master
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -224,7 +224,7 @@ class RichTextElement extends AbstractFormElement {
$this->resultArray = $this->initializeResultArray();
$this->defaultExtras = BackendUtility::getSpecConfParts($parameterArray['fieldConf']['defaultExtras']);
$this->pidOfPageRecord = $table === 'pages' && MathUtility::canBeInterpretedAsInteger($row['uid']) ? (int) $row['uid'] : (int) $row['pid'];
$this->pidOfPageRecord = $this->data['effectivePid'];
BackendUtility::fixVersioningPid($table, $row);
$this->pidOfVersionedMotherRecord = (int) $row['pid'];
$this->vanillaRteTsConfig = $backendUser->getTSConfig('RTE', BackendUtility::getPagesTSconfig($this->pidOfPageRecord));
Loading