Skip to content

Commit

Permalink
[BUGFIX] Do not use dynamic table name in update statement
Browse files Browse the repository at this point in the history
During copying of a "pages" record, child content would
be selected but the input argument for which table to
use in the update() statement was taken from the dynamic
input variable whose value would be "pages", resulting in
an attempt to update properties of a tt_content record in
that table instead.

Close: #1682
  • Loading branch information
NamelessCoder committed Mar 20, 2019
1 parent 90774c9 commit 1d46423
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -192,7 +192,7 @@ public function processCmdmap_postProcess(&$command, $table, $id, &$relativeTo,
ColumnNumberUtility::calculateLocalColumnNumber((int)$recordToProcess['colPos'])
);

$reference->updateDB($table, $copiedRecordUidNested, $overrideArray);
$reference->updateDB('tt_content', $copiedRecordUidNested, $overrideArray);
}
}
}
Expand Down

0 comments on commit 1d46423

Please sign in to comment.