2.3 => 2.4

Verze:

27. 06. 2025

Zodpovědná osoba:

Dominik Šlechta

Poslední aktualizace:

03. 07. 2025, kocandajan488@gmail.com

Tohle je úvodní text. Slouží k vysvětlení, k čemu daná část dokumentace slouží. Může obsahovat i upozornění, pro koho je určená (např. jen pro vývojáře, nebo i pro QA).

Update checklist

  • app/presenters/Admin/templates/Partials/tinymce.js does not have {contentType javascript}

  • Rewrite the old submit button from $form->submitted to use the new $form->isSubmitted().

  • Missing setRequired(true | false) => must be filled in for each use of "addRule"

  • Deprecated fce array_key_exists() (for objects) -> in models replace with property_exists() and swap parameters

    • regex: array_key_exists\((.*?), (.*?)\)

    • replace: property_exists($2, $1)

  • Deprecated nl2br filter -> add to config "- addFilter('nl2br', 'nl2br')"
  • Use tomaj/nette-bootstrap-form instead of bootstrap-3-renderer
  • Somewhere is not checked via isset() or !empty()
  • Rewrite old php code in latte: {?...} => {php...}
  • Old notation of the |noescape filter with !. Fix using:
    • regex: \{\!(.*?)\}
    • replace: {$1\|noescape}
    • Check if the filter is present somewhere 2x
  • With $cookieVariant variable (on Front in the layout) |noescape can be broken
  • In the updated translation there is a wrong vendor/symfony/translation/Translator.php/getLocale() (delete marked)
  • "undefined variable $web"
  • In the product preview the Description filter did not check if $page['options]['properties'] is not an empty array (see picture below) + some translations in db were missing (for now only commented (commit 2313e072) + PROPERTY_FRONT_COLOR_X_COLOR I added from drevojnew)