From abbc557be460ca83afde6cdf92bfedd2ac7d3a9f Mon Sep 17 00:00:00 2001 From: pierre Date: Wed, 12 Dec 2018 19:05:34 +0100 Subject: [PATCH] Set combobox default value --- addons/cadastrapp/js/printBordereauParcellaire.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/cadastrapp/js/printBordereauParcellaire.js b/addons/cadastrapp/js/printBordereauParcellaire.js index 7ebaaa4d..daed26de 100644 --- a/addons/cadastrapp/js/printBordereauParcellaire.js +++ b/addons/cadastrapp/js/printBordereauParcellaire.js @@ -126,6 +126,11 @@ GEOR.Addons.Cadastre.initPrintBordereauParcellaireWindow = function(parcelleId) forceSelection: true, triggerAction: 'all', editable: false + }); + + // Load first value + comboBaseMap.store.on('load', function(ds,records,o){ + comboBaseMap.setValue(0); }); storeBaseMap.loadData(GEOR.Addons.Cadastre.pdfbasemaptitles);