Commit ef8a3405 authored by Frank Nägler's avatar Frank Nägler Committed by Jigal van Hemert
Browse files

[BUGFIX] Palettes "more options" can not be extended if new record is added

HTML ID attribute must not contain a dot, which happens if a new record
is created. In this case the toggle button not work.
This patch replace the dot with an underscore.

Resolves: #67472
Releases: master
Change-Id: I8aa727bb4762e62b42f4dcdbb47477013023f879
Reviewed-on: http://review.typo3.org/40262


Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Jan Helke's avatarJan Helke <typo3@helke.de>
Tested-by: Jan Helke's avatarJan Helke <typo3@helke.de>
Reviewed-by: Jigal van Hemert's avatarJigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert's avatarJigal van Hemert <jigal.van.hemert@typo3.org>
parent d975ed57
......@@ -205,7 +205,7 @@ class PaletteAndSingleContainer extends AbstractContainer {
}
if ($renderUnCollapseButtonWrapper) {
$cssId = 'FORMENGINE_' . $this->globalOptions['table'] . '_' . $paletteName . '_' . $this->globalOptions['databaseRow']['uid'];
$cssId = str_replace('.', '_', 'FORMENGINE_' . $this->globalOptions['table'] . '_' . $paletteName . '_' . $this->globalOptions['databaseRow']['uid']);
$paletteElementsHtml = $this->wrapPaletteWithCollapseButton($paletteElementsHtml, $cssId);
} else {
$paletteElementsHtml = '<div class="row">' . $paletteElementsHtml . '</div>';
......@@ -499,4 +499,4 @@ class PaletteAndSingleContainer extends AbstractContainer {
return $GLOBALS['LANG'];
}
}
\ No newline at end of file
}
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