Problem/Motivation
Similar to the related issue: #3307176: Token is not cleared if none of the tokens produce a replacement
When using "Or" conditions at the beginning of a token, it doesn't evaluate the second set of tokens in the string. The use case would be generating the path auto pattern using different field conditions.
Steps to reproduce
Create 2 text fields on a node
set up the path auto pattern to be something like [node:field_foo|node:field_bar]/[node:title]
Create a node of that type, but leave the two fields empty.
Observe the issue
Edit the node, and populate either of the fields
Re-save and observe the pattern was applied correctly.
Proposed resolution
Treat each token set independently.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Issue fork token_or-3310504
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
pookmish commentedComment #5
pianomansam commented@pookmish wonderful work, yet again!
Comment #6
pookmish commentedThanks for the fast turn around too!