From db518c5e6e8cebc1c2af25a1a3476b3ea81b0ec6 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Tue, 30 Oct 2012 15:46:25 +0000 Subject: [PATCH] [-] BO : Fix #PSCFV-4858 --- controllers/admin/AdminStoresController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/admin/AdminStoresController.php b/controllers/admin/AdminStoresController.php index c2899c897..b928e4f54 100644 --- a/controllers/admin/AdminStoresController.php +++ b/controllers/admin/AdminStoresController.php @@ -334,6 +334,10 @@ class AdminStoresControllerCore extends AdminController if (!in_array($kp, array('checkBoxShopGroupAsso_store', 'checkBoxShopAsso_store'))) $_POST[$kp] = trim($vp); + /* Rewrite latitude and longitude to 8 digits */ + $_POST['latitude'] = number_format($_POST['latitude'], 8) + $_POST['longitude'] = number_format($_POST['longitude'], 8); + /* If the selected country does not contain states */ $id_state = (int)Tools::getValue('id_state'); $id_country = (int)Tools::getValue('id_country');