From 43579dd44b5ee255c932220ca4040411c4ed6c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Mummert?= Date: Sun, 22 Feb 2026 07:04:43 +0100 Subject: [PATCH] Set lat/lng SQL precision to DECIMAL(11,8) --- contao/dca/tl_location.php | 4 ++-- contao/dca/tl_organization.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contao/dca/tl_location.php b/contao/dca/tl_location.php index e817bb7..dd81ac6 100644 --- a/contao/dca/tl_location.php +++ b/contao/dca/tl_location.php @@ -148,8 +148,8 @@ $GLOBALS['TL_DCA']['tl_location'] = [ 'label' => &$GLOBALS['TL_LANG']['tl_location']['lat'], 'exclude' => true, 'inputType' => 'text', - 'eval' => ['maxlength' => 10, 'tl_class' => 'w50'], - 'sql' => ['type' => 'decimal', 'precision' => 10, 'scale' => 8, 'default' => '0.00000000'], + 'eval' => ['maxlength' => 11, 'tl_class' => 'w50'], + 'sql' => ['type' => 'decimal', 'precision' => 11, 'scale' => 8, 'default' => '0.00000000'], ], 'lng' => [ 'label' => &$GLOBALS['TL_LANG']['tl_location']['lng'], diff --git a/contao/dca/tl_organization.php b/contao/dca/tl_organization.php index 7da9ff0..f9f0fa0 100644 --- a/contao/dca/tl_organization.php +++ b/contao/dca/tl_organization.php @@ -178,8 +178,8 @@ $GLOBALS['TL_DCA']['tl_organization'] = [ 'label' => &$GLOBALS['TL_LANG']['tl_organization']['lat'], 'exclude' => true, 'inputType' => 'text', - 'eval' => ['maxlength' => 10, 'tl_class' => 'w50'], - 'sql' => ['type' => 'decimal', 'precision' => 10, 'scale' => 8, 'default' => '0.00000000'], + 'eval' => ['maxlength' => 11, 'tl_class' => 'w50'], + 'sql' => ['type' => 'decimal', 'precision' => 11, 'scale' => 8, 'default' => '0.00000000'], ], 'lng' => [ 'label' => &$GLOBALS['TL_LANG']['tl_organization']['lng'],