lower filter not works with node.title

Created on 6 September 2020, almost 4 years ago
Updated 24 June 2024, 4 days ago

Problem/Motivation

{{node.title|lower}} output empty, as node.title is an array. though in typed_data README.txt says:

For example, {{node.title|lower}} will be the lower case version of the node title.

related issue: #2655020 Auto-convert filter input to string if necessary πŸ“Œ Auto-convert filter input to string if necessary Active

Steps to reproduce

I created a rule to show message "{{node.title|lower}} has been updated" after updating an article as:

uuid: aea5f3a8-9fc9-461b-b686-f8c8d41e1cf5
langcode: en
status: true
dependencies: {  }
id: updating_an_article
label: 'updating an article'
events:
  -
    event_name: 'rules_entity_update:node--article'
description: ''
tags: {  }
config_version: '3'
expression:
  id: rules_rule
  uuid: 0bb9422e-13a4-4743-933d-c74c82057d89
  weight: 0
  conditions:
    id: rules_and
    uuid: fa1bd187-8cee-483c-9534-5d56811198e3
    weight: 0
    conditions: {  }
  actions:
    id: rules_action_set
    uuid: edbc117a-ba6d-4042-a650-6632dac64a08
    weight: 0
    actions:
      -
        id: rules_action
        uuid: ae705ba1-8e38-4c36-8856-8eb5f9e19937
        weight: 0
        context_values:
          message: '{{node.title|lower}} has been updated.'
          type: status
          repeat: false
        context_mapping: {  }
        context_processors:
          message:
            rules_tokens: {  }
          type:
            rules_tokens: {  }
          repeat:
            rules_tokens: {  }
        provides_mapping: {  }
        action_id: rules_system_message

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

2.1

Component

Data filters

Created by

πŸ‡¨πŸ‡³China drupalfan79

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.

Production build 0.69.0 2024