Remove incorrect tokens.

Created on 25 July 2022, almost 2 years ago
Updated 4 December 2023, 7 months ago

Problem/Motivation

When users open 'Browse available tokens', they get two incorrect tokens ([node:field_name:value] and [node:field_name:end_value]).
After call this tokens user got error `Call to a member function getTimestamp() on string in datetime_range_timezone_tokens_alter()`.

Steps to reproduce

1) Create a field in the content type
2) Try to get a start ([node:field_name:value]) or end ([node:field_name:end_value]) value using a token.

πŸ“Œ Task
Status

Closed: won't fix

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Abyss

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.

  • Status changed to Active about 1 year ago
  • πŸ‡§πŸ‡ͺBelgium joevagyok

    I can't reproduce the error. For me it correctly returns the timestamp value.

  • πŸ‡ΊπŸ‡¦Ukraine Abyss

    @joevagyok, it seems that this problem was already resolved in another way. But value and end_value are displayed in html_datetime format.
    Also, at the moment, I do not see a problem that the date can be displayed in html_datetime format from these fields, and not start_date or end_date, although based on the logic of the module, it should be displayed taking the timezone as well, but it seems that this is not used in the value and end_value fields.

  • Status changed to Needs review 7 months ago
  • πŸ‡ΊπŸ‡¦Ukraine Abyss

    @joevagyok, it may even be possible to simply close this task, since there is no longer any work required here.

  • Status changed to Closed: won't fix 7 months ago
  • πŸ‡§πŸ‡ͺBelgium joevagyok

    Thanks for clarifying it. Closing this issue.

Production build 0.69.0 2024