GX-Bug #71138
Von Till Tepelmann vor 11 Monaten aktualisiert
Wenn man sprachabhängige Konfigurationsfelder in der GXModule.json benutzt, entstehen Smarty Fehler und das Modul kann nicht konfiguriert werden.
Kann wie folgt reproduziert werden:
1. Shop installieren
2. Modul aus dem Anhang hochladen
3. Modul im Modul-Store installieren
4. Konfiguration aufrufen über Zahnräder
Erwartetes Ergebnis:
Das Modul ist konfigurierbar und die sprachabhängigen Felder werden normal angezeigt und können gespeichert werden
Tatsächliches Ergebnis:
Es erscheint eine Smarty Fehlermeldung und die sprachabhängigen Konfigurationsfelder können nicht gelesen werden
-------------------------
If you use language-dependent configuration fields in the GXModule.json, Smarty errors occur and the module cannot be configured.
Can be reproduced as follows:
1. install store
2. upload module from the attachment
3. install the module in the module store
4. call up configuration via gear wheels
Expected result:
The module is configurable and the language-dependent fields are displayed normally and can be saved
Actual result:
A Smarty error message appears and the language-dependent configuration fields cannot be read
---------------------------------------
``` html
Unexpected error occurred...
Message: Syntax error in template "get_usermod:get_usermod:module_centergx_modulessnippetslanguage_dependenttext.html" on line 25 "{if isset($config.default_value->{$languageCode})}" Security error: Call to dynamic object member not allowed
Code: 0
File: get_usermod:module_centergx_modulessnippetslanguage_dependenttext.html
Line: 25
```