Post update hook may not find all token that need to be replaced

Created on 10 July 2024, about 2 months ago
Updated 6 August 2024, about 1 month ago

Problem/Motivation

The post update hook for the 2.0 release may not have found all old tokens because the method _eca_post_update_token_rename searches for token names as if they never had any sub-properties.

Example: if the token name old-name should be replaced with new_name, that would find all instances of [old-name] but not e.g. [old-name:id].

Proposed resolution

Update the search and replace part of this hook such that it doesn't use the closing bracket, i.e. for the above example it should search for [old-name only. That'll then work in all cases.

For users who had already updated, we need to provide another post update hook to run the previous one again with the fixed replacement.

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024