Set lat/lng SQL precision to DECIMAL(11,8)
This commit is contained in:
@@ -148,8 +148,8 @@ $GLOBALS['TL_DCA']['tl_location'] = [
|
|||||||
'label' => &$GLOBALS['TL_LANG']['tl_location']['lat'],
|
'label' => &$GLOBALS['TL_LANG']['tl_location']['lat'],
|
||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'eval' => ['maxlength' => 10, 'tl_class' => 'w50'],
|
'eval' => ['maxlength' => 11, 'tl_class' => 'w50'],
|
||||||
'sql' => ['type' => 'decimal', 'precision' => 10, 'scale' => 8, 'default' => '0.00000000'],
|
'sql' => ['type' => 'decimal', 'precision' => 11, 'scale' => 8, 'default' => '0.00000000'],
|
||||||
],
|
],
|
||||||
'lng' => [
|
'lng' => [
|
||||||
'label' => &$GLOBALS['TL_LANG']['tl_location']['lng'],
|
'label' => &$GLOBALS['TL_LANG']['tl_location']['lng'],
|
||||||
|
|||||||
@@ -178,8 +178,8 @@ $GLOBALS['TL_DCA']['tl_organization'] = [
|
|||||||
'label' => &$GLOBALS['TL_LANG']['tl_organization']['lat'],
|
'label' => &$GLOBALS['TL_LANG']['tl_organization']['lat'],
|
||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'eval' => ['maxlength' => 10, 'tl_class' => 'w50'],
|
'eval' => ['maxlength' => 11, 'tl_class' => 'w50'],
|
||||||
'sql' => ['type' => 'decimal', 'precision' => 10, 'scale' => 8, 'default' => '0.00000000'],
|
'sql' => ['type' => 'decimal', 'precision' => 11, 'scale' => 8, 'default' => '0.00000000'],
|
||||||
],
|
],
|
||||||
'lng' => [
|
'lng' => [
|
||||||
'label' => &$GLOBALS['TL_LANG']['tl_organization']['lng'],
|
'label' => &$GLOBALS['TL_LANG']['tl_organization']['lng'],
|
||||||
|
|||||||
Reference in New Issue
Block a user