BugBuster1701 / contao-visitors-bundle

Contao 4/5 Visitors Bundle
GNU Lesser General Public License v3.0
2 stars 2 forks source link

PHP Warning: Undefined array key "deleteConfirm" #128

Closed bizon1 closed 1 year ago

bizon1 commented 1 year ago

Contao 4.13.12 PHP 8.1.12 contao-visitors-bundle 1.6.13

After clearing the Symfony caches the following PHP Warning appears: PHP Warning: Undefined array key "deleteConfirm" in .../vendor/bugbuster/contao-visitors-bundle/src/Resources/contao/dca/tl_visitors.php on line 85

Changing the dca settings on line 85 with: 'attributes' => 'onclick="if (!confirm(\''.($GLOBALS['TL_LANG']['MSC']['deleteConfirm'] ?? null).'\')) return false; Backend.getScrollOffset();"', is fixing this issue.

BugBuster1701 commented 1 year ago

Is fixed in Version 1.7.1 https://github.com/BugBuster1701/contao-visitors-bundle/issues/118