Skip to content

Commit

Permalink
Use correct page id in TCE edit links
Browse files Browse the repository at this point in the history
  • Loading branch information
digedag committed Nov 16, 2024
1 parent fa911b1 commit e9550f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
Changelog
---------

v1.19.1 (??.10.2024)
v1.19.1 (??.11.2024)
* Fix warning in TSFAL
* Fix wrong page id in edit links.
* Possible BC: createConf() in TSFAL is now private

v1.19.0 (06.10.2024)
Expand Down
8 changes: 5 additions & 3 deletions Classes/Backend/Form/ToolBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,19 @@ public function createEditLink($editTable, $editUid, $label = 'Edit', $options =
}

/**
* @param string $table name of records table
* @param int $uid uid for record
* @param string $operation new or edit
*/
private function buildEditUri($table, $pid, $operation, array $options)
private function buildEditUri($table, $uid, $operation, array $options)
{
$returnUrl = T3General::getIndpEnv('REQUEST_URI');
$uri = (string) $this->uriBuilder->buildUriFromRoute(
'record_edit',
[
'id' => $pid,
'id' => $this->getModule()->getPid(),
'returnUrl' => $returnUrl,
sprintf('edit[%s][%s]', $table, $pid) => $operation,
sprintf('edit[%s][%s]', $table, $uid) => $operation,
]
);
if (isset($options[self::OPTION_PARAMS])) {
Expand Down

0 comments on commit e9550f7

Please sign in to comment.