Problem/Motivation

Using an if condition on a for tag is deprecated. This renders certain admin pages unusable in Drupal 10 which shows a white screen, logging the following error.

Twig\Error\SyntaxError: Unexpected token "name" of value "if" ("end of statement block" expected). in Twig\TokenStream->expect() (line 12 of /web/themes/contrib/mediteran/templates/admin/indentation.html.twig).

Steps to reproduce

Enable this theme and set it as the admin them. Go to a screen which uses one of the affected templates, such as a menu admin screen: /admin/structure/menu/manage/main

Proposed resolution

Change the logic in the relevant template files.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 remove_if_on_for_tag-3343549-2.patch2.42 KBimclean

Comments

imclean created an issue. See original summary.

imclean’s picture

Status: Active » Needs review
StatusFileSize
new2.42 KB
imclean’s picture

cruno’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @imclean this patch fixed the issue.

dpi’s picture

Thanks! Also resolves issues on Taxonomy term overview route

doxigo’s picture

Thanks for the work and the patch, applied

doxigo’s picture

Status: Reviewed & tested by the community » Fixed

  • doxigo committed 89841748 on 8.x-1.x authored by imclean
    Issue #3343549 by imclean, cruno, dpi, doxigo: Adding an if condition on...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.