Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monnaies-locales
kohinos
Commits
140b7937
Commit
140b7937
authored
Jan 11, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase precision for lat & lon in presta geoloc
parent
38dbc3c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
VERSION
VERSION
+1
-1
GeolocFormType.php
src/Form/Type/GeolocFormType.php
+7
-4
No files found.
VERSION
View file @
140b7937
1.1.
6
1.1.
7
src/Form/Type/GeolocFormType.php
View file @
140b7937
...
...
@@ -24,6 +24,7 @@ namespace App\Form\Type;
use
App\Entity\Geoloc
;
use
Symfony\Component\Form\AbstractType
;
use
Symfony\Component\Form\Extension\Core\Type\TextType
;
use
Symfony\Component\Form\Extension\Core\Type\NumberType
;
use
Symfony\Component\Form\Extension\Core\Type\ButtonType
;
use
Symfony\Component\Form\FormBuilderInterface
;
use
Symfony\Component\Form\FormEvent
;
...
...
@@ -70,13 +71,15 @@ class GeolocFormType extends AbstractType
}
if
(
$options
[
'with_latlon'
]
===
true
||
(
!
empty
(
$geoloc
)
&&
(
!
empty
(
$geoloc
->
getLat
())
||
!
empty
(
$geoloc
->
getLon
()))))
{
$builder
->
add
(
'lat'
,
null
,
array
(
->
add
(
'lat'
,
NumberType
::
class
,
array
(
'label'
=>
'Latitude :'
,
'required'
=>
false
'required'
=>
false
,
'scale'
=>
8
))
->
add
(
'lon'
,
null
,
array
(
->
add
(
'lon'
,
NumberType
::
class
,
array
(
'label'
=>
'Longitude :'
,
'required'
=>
false
'required'
=>
false
,
'scale'
=>
8
))
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment