Enumerate (Sort, no dupl.)* prints html, does not render html

Created on 11 May 2022, about 3 years ago
Updated 27 April 2023, about 2 years ago

Problem

The enumerate column prints the html no matter what is chosen or entered as the Parameter. For example I can't use <br> as a parameter. Using no parameter uses <br> by default and prints it. If I have "link to content" selected it prints the whole href. Only something like a basic character such as a comma (, ) works. If I rewrite the field and use an "excluded from view" field as a token in the enumerated field, it again prints the html.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States crutch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇸Spain bolecha

    Same for me (Drupal 10.0.3, Views Aggregator Plus Version: 2.0.1, released 19 January 2022)

    The enumerate column prints the html.
    If I have for example "link to content" selected it prints the whole href

  • First commit to issue fork.
  • 🇺🇸United States mortona2k Seattle

    This issue may be broader, I just encountered it with a Maximum grouping.

    Working with an aggregated table recently I was able to hide the problem field, then add Custom Text field, add the token for the problem field to it and then it displays correctly.

    This workaround was helpful.

  • 🇮🇹Italy giuse69

    hi, this issue is 3 years old... any maintainer is looking at that?

  • 🇺🇸United States mortona2k Seattle

    Something happening in the views display plugin, Table->setCell().
    https://git.drupalcode.org/project/views_aggregator/-/blob/2.1.x/src/Plu...

    By tracing the code with xdebug, I was seeing that the value gets rendered as markup, but then extracted as a string value before checking if the field isRenderable() and running renderNewValue(). The issue is somewhere in those functions.

    I tested with this, to not process the title field on that line, and it rendered fine.

    if ($field_name != 'title' && $is_renderable = $this->isRenderable($field_name, FALSE)) {
    

    Not sure what else is wrong, but hopefully this gives the next person a better starting point.

Production build 0.71.5 2024