GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — View field style tokens for the first row use values from last row · Issue #7245 · backdrop/backdrop-issues

View field style tokens for the first row use values from last row #7245

New issue
Copy link
New issue
Copy link
Open
Bug
backdrop/backdrop
#5368
backdrop/backdrop#5368
Open
View field style tokens for the first row use values from last row#7245
Bug
backdrop/backdrop
#5368
Copy link
Labels
pr - needs code reviewpr - works for mestatus - has pull request

Description

@jcharaoui
jcharaoui
opened on Nov 21, 2026
Issue body actions

Description of the bug

When setting up a view field with a style setting that creates a CSS class that uses a token based on another field in the view, the first row always uses the token values of the last row, instead of the first row.

Steps To Reproduce

To reproduce the behavior:

  1. Set up a content type with a "status" field and create at least 2 nodes with different "status" and title values
  2. Create a view (eg. table) that renders this content type
  3. Order the fields "status" first, then title
  4. In the view's title field, go to Style settings, check "Create a CSS class" and enter status-[field_status]
  5. Save

Actual behavior

The CSS class added to the first row will always reflect the field values from the last row.

Expected behavior

The CSS class added to the first should use field values from its own row, not the last row in the view.

Additional information

Add any other information that could help, such as:

  • Backdrop CMS version: 1.35.2

I was able to track down the issue and will submit a 2-line PR to fix this.

Activity

  1. jcharaoui
    added the
    Bug
    issue type on Nov 21, 2026
  2. avpaderno
    added
    status - has pull request
    pr - needs code review
    on Nov 21, 2026
  3. argiepiano commented on Nov 27, 2026

    @argiepiano
    argiepiano
    on Nov 27, 2026
    More actions

    @jcharaoui great discovery! Thanks for providing the PR.

    Confirming that the bug exists, and that it's caused by a simple logic error that fails to take into account that row 0 will give falsy for that replacement, when in fact it's a valid value.

    @backdrop/core-committers the tests haven't run; they are waiting for approval. I don't have enough privileges to approve.

    LGTM

  4. argiepiano
    added
    pr - works for me
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pr - needs code reviewpr - works for mestatus - has pull request

    Type

    Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.