Lieferadresse: Falsche Stadt wird angezeigt
authorMartin Helmling mh@waldpark.octosoft.eu <martin.helmling@octosoft.eu>
Wed, 17 Feb 2016 13:32:57 +0000 (14:32 +0100)
committerMartin Helmling mh@waldpark.octosoft.eu <martin.helmling@octosoft.eu>
Wed, 17 Feb 2016 13:32:57 +0000 (14:32 +0100)
Beim Öffnen der Lieferadresse wird eine falsche Stadt angezeigt (PLZ+Stadt)

Hier wird die Forms Variable "city" durch das Template in der Loop zum Lieferadressen-Erzeugen
verändert: Globale Varibale in Template.

Durch Umbenennen Behoben

templates/webpages/io/ship_to.html

index 476aaeb..2ffed37 100644 (file)
@@ -63,9 +63,9 @@
 
 [% select_options = [ [ 0, LxERP.t8("Billing Address") ] ] ;
    FOREACH shipto = vc_obj.shipto ;
-     city  = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ;
-     title = [ shipto.shiptoname, shipto.shiptostreet, city ] ;
-     CALL select_options.import([ [ loop.count, title.grep('\S').join("; ") ] ]) ;
+     tmpcity  = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ;
+     tmptitle = [ shipto.shiptoname, shipto.shiptostreet, tmpcity ] ;
+     CALL select_options.import([ [ loop.count, tmptitle.grep('\S').join("; ") ] ]) ;
    END ;
    '' %]