Remove incorrect tokens.

Created on 25 July 2022, over 2 years ago
Updated 4 December 2023, about 1 year 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 over 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 about 1 year 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 about 1 year ago
  • πŸ‡§πŸ‡ͺBelgium joevagyok

    Thanks for clarifying it. Closing this issue.

Production build 0.71.5 2024