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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

crutch created an issue. See original summary.

crutch’s picture

Issue summary: View changes
bbc’s picture

This is also happening when "Enumerate *" is selected.

crutch’s picture

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.

bolecha’s picture

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

carolpettirossi made their first commit to this issue’s fork.

mortona2k’s picture

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.

giuse69’s picture

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

mortona2k’s picture

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.