#93877pidInList keyword 'this' not working when CE is referenced via CType = shortcut because it points to the page of the shortcut CE and not to the page of the referenced CE
Description
Consider a CE that fetches inline records with a DatabaseQueryProcessor. Since the records are on the same page as the CE itself, for pidInList the default this is correct.
If this CE is now referenced in CType shortcut the inline records are not fetched because this uses the pid of the shortcut element, not from the referenced record. You have to explcitly state pidInList.field = pid which makes the this keyword essentially useless (because you can never use it because under normal circumstances every CType is allowed to be rendered in a shortcut so you always have to explicitly set it to field = pid anyways).
I’m not sure whether this is actually a flaw of this or the source configuration of RECORDS (which shortcut is using internally).
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] pidInList keyword 'this' not working when CE is referenced via CType = shortcut because it points to the page of the shortcut CE and not to the page of the referenced CE Resolves: #93877 Releases: main