Ansprechpersonen-CVars mit INCLUDE und nicht PROCESS einbinden
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 12 Nov 2014 11:12:33 +0000 (12:12 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 12 Nov 2014 11:30:28 +0000 (12:30 +0100)
PROCESS lokalisiert die Variablen nicht. Das führt dazu, dass bei
multiplen CVars für Ansprechpersonen der Feldname aller CVar-Inputs
immer der der ersten CVar ist.

templates/webpages/customer_vendor/tabs/contacts.html
templates/webpages/customer_vendor/tabs/custom_variables.html

index af4b942..630a607 100644 (file)
           <th align="left" valign="top" nowrap>[% var.config.description | html %]</th>
 
           <td valign="top">
-            [% PROCESS 'common/render_cvar_input.html'
+            [% INCLUDE 'common/render_cvar_input.html'
                        cvar_name_prefix = 'contact_cvars.'
             %]
           </td>
index e0ecdc7..dcd62f0 100644 (file)
@@ -8,7 +8,7 @@
           <th align="left" valign="top" nowrap>[% var.config.description | html %]</th>
 
           <td valign="top">
-            [% PROCESS 'common/render_cvar_input.html'
+            [% INCLUDE 'common/render_cvar_input.html'
                         cvar_name_prefix = 'cv_cvars.'
                         var_name = ''
             %]