diff --git a/src/Listener/Dca/LayerDcaListener.php b/src/Listener/Dca/LayerDcaListener.php index 162b119..e156c4a 100644 --- a/src/Listener/Dca/LayerDcaListener.php +++ b/src/Listener/Dca/LayerDcaListener.php @@ -14,6 +14,7 @@ namespace Netzmacht\Contao\Leaflet\Listener\Dca; use Contao\Controller; use Contao\Image; +use Contao\RequestToken; use Contao\StringUtil; use Doctrine\DBAL\Connection; use Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\LayerLabelRenderer; @@ -224,6 +225,7 @@ class LayerDcaListener extends AbstractListener $pasteAfterUrl = \Controller::addToUrl( 'act='.$children['mode'].'&mode=1&pid='.$row['id'] .(!is_array($children['id']) ? '&id='.$children['id'] : '') + . '&rt=' . RequestToken::get() ); $buffer = sprintf(