The ‘original object’ object reference doesn’t work for object variables, while it does work for object traits.
The new Bold Text custom rule uses an ‘original object’ reference for an object’s trait. That works fine.
However, the example below shows that the ‘original object’ reference isn’t working for object variables.
This should display 1 & 1 for both the original object and the clone:
Now, change the object reference to ‘Text’ (which is the original object) and the code works as expected:
Also, going back to the ‘original object’ reference but using an object trait to store the value works as expected. So the issue is only with reference to object variables.