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

Issue information

From user: jurgenhaas

Related to !435 (merged)

Contribution record

Fork management

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.

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information