I get an error when I try to set a metadata field to use the global site keyword with the as_asset modifier. Only happens for Online Quiz asset types, all other asset types I've tested work fine.
What I'm trying to do:
I'm trying to get my assets to use a default metadata value based on the current site being viewed.
My keywords:
%globals_site_assetid^as_asset:asset_metadata_xxx%
Result (error):
On all asset types except Online Quiz, this works absolutely fine. When I apply it to an Online Quix type, it says:
MySource Warning File: [SYSTEM_ROOT]/core/include/locale_manager.inc Line: 547 Message: Assetid, '%globals_site_assetid%', provided to as_asset keyword modifier is not valid [CORE0321] Backtrace: Show
If I use the following keyword alone it works fine (well, prints out the correct ID):
%globals_site_assetid%
Similarly, if I put both these keywords into the page body, asset_id alone works fine, but using ^as_asset on it does not print anything.
Any idea why this only fails for Online Quiz types?
Update: Matrix v4.12