From bf94d052939bd6234162e41637232cb20cfbf77c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 28 Jul 2012 03:12:34 +0200 Subject: [PATCH 1/2] New: Add great britain provinces --- ChangeLog | 1 + .../install/mysql/data/llx_10_c_regions.sql | 6 + .../mysql/data/llx_20_c_departements.sql | 122 ++++++++++++++++++ 3 files changed, 129 insertions(+) diff --git a/ChangeLog b/ChangeLog index 08cc2812d9f..7146eb646c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -28,6 +28,7 @@ For users: - New: [ task #454 ] Add "No category" into filters on category. - New: Update language files (de, tr, pt). - New: Auto check box on page to edit interface options of user. +- New: Add great britain provinces. - Fix: No images into product description lines as PDF generation does not work with this. diff --git a/htdocs/install/mysql/data/llx_10_c_regions.sql b/htdocs/install/mysql/data/llx_10_c_regions.sql index ba998b4bf08..7e699d6e272 100644 --- a/htdocs/install/mysql/data/llx_10_c_regions.sql +++ b/htdocs/install/mysql/data/llx_10_c_regions.sql @@ -118,6 +118,12 @@ INSERT INTO llx_c_regions (rowid, fk_pays, code_region, cheflieu, tncc, nom, act -- Regions Switzerland (id country=6) INSERT INTO llx_c_regions (rowid, fk_pays, code_region, cheflieu, tncc, nom, active) VALUES (601, 6, 601, '', 1, 'Cantons', 1); +-- Regions England (id_country=7) +INSERT INTO llx_c_regions (rowid, fk_pays, code_region, cheflieu, tncc, nom, active) VALUES (701, 7, 701, '', 0, 'England', 1); +INSERT INTO llx_c_regions (rowid, fk_pays, code_region, cheflieu, tncc, nom, active) VALUES (702, 7, 702, '', 0, 'Wales', 1); +INSERT INTO llx_c_regions (rowid, fk_pays, code_region, cheflieu, tncc, nom, active) VALUES (703, 7, 703, '', 0, 'Scotland', 1); +INSERT INTO llx_c_regions (rowid, fk_pays, code_region, cheflieu, tncc, nom, active) VALUES (704, 7, 704, '', 0, 'Northern Ireland', 1); + -- Regions Tunisia (id country=10) insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (1001,10,1001, '',0,'Ariana'); insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (1002,10,1002, '',0,'Béja'); diff --git a/htdocs/install/mysql/data/llx_20_c_departements.sql b/htdocs/install/mysql/data/llx_20_c_departements.sql index fa6294f628e..4a234788b8b 100644 --- a/htdocs/install/mysql/data/llx_20_c_departements.sql +++ b/htdocs/install/mysql/data/llx_20_c_departements.sql @@ -384,6 +384,128 @@ INSERT INTO llx_c_departements (fk_region, code_departement, ncc, nom, active) V INSERT INTO llx_c_departements (fk_region, code_departement, ncc, nom, active) VALUES (601,'ZG','ZUG','Zug',1); INSERT INTO llx_c_departements (fk_region, code_departement, ncc, nom, active) VALUES (601,'ZH','ZURICH','Zürich',1); +-- Provinces GB (id country=7) +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('701', 701, NULL, 0,NULL, 'Bedfordshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('702', 701, NULL, 0,NULL, 'Berkshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('703', 701, NULL, 0,NULL, 'Bristol, City of', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('704', 701, NULL, 0,NULL, 'Buckinghamshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('705', 701, NULL, 0,NULL, 'Cambridgeshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('706', 701, NULL, 0,NULL, 'Cheshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('707', 701, NULL, 0,NULL, 'Cleveland', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('708', 701, NULL, 0,NULL, 'Cornwall', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('709', 701, NULL, 0,NULL, 'Cumberland', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('710', 701, NULL, 0,NULL, 'Cumbria', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('711', 701, NULL, 0,NULL, 'Derbyshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('712', 701, NULL, 0,NULL, 'Devon', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('713', 701, NULL, 0,NULL, 'Dorset', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('714', 701, NULL, 0,NULL, 'Co. Durham', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('715', 701, NULL, 0,NULL, 'East Riding of Yorkshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('716', 701, NULL, 0,NULL, 'East Sussex', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('717', 701, NULL, 0,NULL, 'Essex', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('718', 701, NULL, 0,NULL, 'Gloucestershire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('719', 701, NULL, 0,NULL, 'Greater Manchester', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('720', 701, NULL, 0,NULL, 'Hampshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('721', 701, NULL, 0,NULL, 'Hertfordshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('722', 701, NULL, 0,NULL, 'Hereford and Worcester', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('723', 701, NULL, 0,NULL, 'Herefordshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('724', 701, NULL, 0,NULL, 'Huntingdonshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('725', 701, NULL, 0,NULL, 'Isle of Man', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('726', 701, NULL, 0,NULL, 'Isle of Wight', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('727', 701, NULL, 0,NULL, 'Jersey', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('728', 701, NULL, 0,NULL, 'Kent', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('729', 701, NULL, 0,NULL, 'Lancashire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('730', 701, NULL, 0,NULL, 'Leicestershire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('731', 701, NULL, 0,NULL, 'Lincolnshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('732', 701, NULL, 0,NULL, 'London - City of London', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('733', 701, NULL, 0,NULL, 'Merseyside', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('734', 701, NULL, 0,NULL, 'Middlesex', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('735', 701, NULL, 0,NULL, 'Norfolk', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('736', 701, NULL, 0,NULL, 'North Yorkshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('737', 701, NULL, 0,NULL, 'North Riding of Yorkshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('738', 701, NULL, 0,NULL, 'Northamptonshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('739', 701, NULL, 0,NULL, 'Northumberland', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('740', 701, NULL, 0,NULL, 'Nottinghamshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('741', 701, NULL, 0,NULL, 'Oxfordshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('742', 701, NULL, 0,NULL, 'Rutland', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('743', 701, NULL, 0,NULL, 'Shropshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('744', 701, NULL, 0,NULL, 'Somerset', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('745', 701, NULL, 0,NULL, 'Staffordshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('746', 701, NULL, 0,NULL, 'Suffolk', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('747', 701, NULL, 0,NULL, 'Surrey', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('748', 701, NULL, 0,NULL, 'Sussex', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('749', 701, NULL, 0,NULL, 'Tyne and Wear', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('750', 701, NULL, 0,NULL, 'Warwickshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('751', 701, NULL, 0,NULL, 'West Midlands', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('752', 701, NULL, 0,NULL, 'West Sussex', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('753', 701, NULL, 0,NULL, 'West Yorkshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('754', 701, NULL, 0,NULL, 'West Riding of Yorkshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('755', 701, NULL, 0,NULL, 'Wiltshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('756', 701, NULL, 0,NULL, 'Worcestershire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('757', 701, NULL, 0,NULL, 'Yorkshire', 1); +-- Wales +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('758', 702, NULL, 0,NULL, 'Anglesey', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('759', 702, NULL, 0,NULL, 'Breconshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('760', 702, NULL, 0,NULL, 'Caernarvonshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('761', 702, NULL, 0,NULL, 'Cardiganshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('762', 702, NULL, 0,NULL, 'Carmarthenshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('763', 702, NULL, 0,NULL, 'Ceredigion', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('764', 702, NULL, 0,NULL, 'Denbighshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('765', 702, NULL, 0,NULL, 'Flintshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('766', 702, NULL, 0,NULL, 'Glamorgan', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('767', 702, NULL, 0,NULL, 'Gwent', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('768', 702, NULL, 0,NULL, 'Gwynedd', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('769', 702, NULL, 0,NULL, 'Merionethshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('770', 702, NULL, 0,NULL, 'Monmouthshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('771', 702, NULL, 0,NULL, 'Mid Glamorgan', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('772', 702, NULL, 0,NULL, 'Montgomeryshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('773', 702, NULL, 0,NULL, 'Pembrokeshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('774', 702, NULL, 0,NULL, 'Powys', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('775', 702, NULL, 0,NULL, 'Radnorshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('776', 702, NULL, 0,NULL, 'South Glamorgan', 1); +-- Scotland +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('777', 703, NULL, 0,NULL, 'Aberdeen, City of', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('778', 703, NULL, 0,NULL, 'Angus', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('779', 703, NULL, 0,NULL, 'Argyll', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('780', 703, NULL, 0,NULL, 'Ayrshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('781', 703, NULL, 0,NULL, 'Banffshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('782', 703, NULL, 0,NULL, 'Berwickshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('783', 703, NULL, 0,NULL, 'Bute', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('784', 703, NULL, 0,NULL, 'Caithness', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('785', 703, NULL, 0,NULL, 'Clackmannanshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('786', 703, NULL, 0,NULL, 'Dumfriesshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('787', 703, NULL, 0,NULL, 'Dumbartonshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('788', 703, NULL, 0,NULL, 'Dundee, City of', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('789', 703, NULL, 0,NULL, 'East Lothian', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('790', 703, NULL, 0,NULL, 'Fife', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('791', 703, NULL, 0,NULL, 'Inverness', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('792', 703, NULL, 0,NULL, 'Kincardineshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('793', 703, NULL, 0,NULL, 'Kinross-shire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('794', 703, NULL, 0,NULL, 'Kirkcudbrightshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('795', 703, NULL, 0,NULL, 'Lanarkshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('796', 703, NULL, 0,NULL, 'Midlothian', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('797', 703, NULL, 0,NULL, 'Morayshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('798', 703, NULL, 0,NULL, 'Nairnshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('799', 703, NULL, 0,NULL, 'Orkney', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('800', 703, NULL, 0,NULL, 'Peebleshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('801', 703, NULL, 0,NULL, 'Perthshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('802', 703, NULL, 0,NULL, 'Renfrewshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('803', 703, NULL, 0,NULL, 'Ross & Cromarty', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('804', 703, NULL, 0,NULL, 'Roxburghshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('805', 703, NULL, 0,NULL, 'Selkirkshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('806', 703, NULL, 0,NULL, 'Shetland', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('807', 703, NULL, 0,NULL, 'Stirlingshire', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('808', 703, NULL, 0,NULL, 'Sutherland', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('809', 703, NULL, 0,NULL, 'West Lothian', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('810', 703, NULL, 0,NULL, 'Wigtownshire', 1); +-- Northern Ireland +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('811', 704, NULL, 0,NULL, 'Antrim', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('812', 704, NULL, 0,NULL, 'Armagh', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('813', 704, NULL, 0,NULL, 'Co. Down', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('814', 704, NULL, 0,NULL, 'Co. Fermanagh', 1); +INSERT INTO llx_c_departements (`code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES ('815', 704, NULL, 0,NULL, 'Co. Londonderry', 1); + + + -- Provinces US (id country=11) insert into llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) values ('AL', 1101, '', 0, 'ALABAMA', 'Alabama', 1); insert into llx_c_departements ( code_departement, fk_region, cheflieu, tncc, ncc, nom, active) values ('AK', 1101, '', 0, 'ALASKA', 'Alaska', 1); From 160997cbbe08d9c4ec0694c917a237b2426f3c05 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 28 Jul 2012 12:31:37 +0200 Subject: [PATCH 2/2] Fix: Bad test --- htdocs/product/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index b7694adb377..73ac24c874f 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -144,7 +144,7 @@ if (empty($reshook)) { $error=0; - if (GETPOST('libelle')) + if (! GETPOST('libelle')) { $mesg='
'.$langs->trans('ErrorFieldRequired',$langs->transnoentities('Label')).'
'; $action = "create";