Skip to content
Code-Schnipsel Gruppen Projekte
  • Henning Leutz's avatar
    d8d1a2c6
    fix: ensure runtime currency code is a string · d8d1a2c6
    verfasst von Henning Leutz
    Previously in QUI/ERP/Currency/EventHandler.php, the script output for window.RUNTIME_CURRENCY was
    not quoted, which could cause failures if the currency code was not a valid JavaScript variable
    name. This change wraps the call to Handler::getRuntimeCurrency()->getCode() in quotes to ensure it
    is interpreted as a string.
    d8d1a2c6
    Verlauf
    fix: ensure runtime currency code is a string
    verfasst von Henning Leutz
    Previously in QUI/ERP/Currency/EventHandler.php, the script output for window.RUNTIME_CURRENCY was
    not quoted, which could cause failures if the currency code was not a valid JavaScript variable
    name. This change wraps the call to Handler::getRuntimeCurrency()->getCode() in quotes to ensure it
    is interpreted as a string.