Skip to content

Commit

Permalink
Merge pull request #599 from georchestra/issue-489
Browse files Browse the repository at this point in the history
Link to  #489
  • Loading branch information
pierrejego committed Nov 19, 2021
2 parents 10584ac + a830f01 commit 358b906
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions addons/cadastrapp/js/printBordereauParcellaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ GEOR.Addons.Cadastre.onClickPrintBordereauParcellaireWindow = function(parcelleI
var params = {
parcelle: parcelleId,
personaldata: 0,
fillcolor: GEOR.Addons.Cadastre.styles.selected.fillColor,
// remove # to avoid url problems
fillcolor: GEOR.Addons.Cadastre.styles.selected.fillColor.substring(1),
opacity: GEOR.Addons.Cadastre.styles.selected.opacity,
strokecolor: GEOR.Addons.Cadastre.styles.selected.strokeColor,
strokecolor: GEOR.Addons.Cadastre.styles.selected.strokeColor.substring(1),
strokewidth: GEOR.Addons.Cadastre.styles.selected.strokeWidth,
}
var url = GEOR.Addons.Cadastre.url.serviceCreateBordereauParcellaire + '?' + Ext.urlEncode(params);
Expand Down Expand Up @@ -281,9 +282,9 @@ GEOR.Addons.Cadastre.initPrintBordereauParcellaireWindow = function(parcelleId)
}
// Add style information
// remove # to avoid URL problems on server side (XSL template doesnot manage url-encode)
params.fillcolor=GEOR.Addons.Cadastre.styles.selected.fillColor.substring(1);;
params.fillcolor=GEOR.Addons.Cadastre.styles.selected.fillColor.substring(1);
params.opacity=GEOR.Addons.Cadastre.styles.selected.opacity;
params.strokecolor=GEOR.Addons.Cadastre.styles.selected.strokeColor.substring(1);;
params.strokecolor=GEOR.Addons.Cadastre.styles.selected.strokeColor.substring(1);
params.strokewidth=GEOR.Addons.Cadastre.styles.selected.strokeWidth;

var url = GEOR.Addons.Cadastre.url.serviceCreateBordereauParcellaire + '?' + Ext.urlEncode(params);
Expand Down

0 comments on commit 358b906

Please sign in to comment.