Raw value tokens not replaced if used in css class

Created on 28 August 2011, almost 14 years ago
Updated 9 September 2024, 10 months ago

If I want to create a class for a field or row or etc. using replacement patterns raw values it won't work. It will just replace if I don't use the raw value.

Example:
- if I enter state-[field_state] it works fine (returning state-In work which anyway isn't css compliant)
- if I enter state-[field_state-value] it just returns state--field_state-value when it should return state-1(or whatever the raw value is)

Shouldn't it work with raw values also? If I use them in "Rewrite results" the raw values are displayed correctly.

A little backtracking on this bug brought me to function tokenize_value($value, $row_index = NULL) in views_handler_field.inc.php. I think this is the function that should replace the token with it's proper value but it doesn't do that. But from there on I'm lost :).

πŸ› Bug report
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated about 4 hours ago

Created by

πŸ‡·πŸ‡΄Romania Alex Savin

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

Production build 0.71.5 2024