cms
cms copied to clipboard
Updates $onAssetElementList check to handle arrays
Description
I'm not sure exactly why but in the apply function, $value can sometimes be an array. My best guess is that when an asset field is used twice, the second time it comes through as an array instead of a collection.
Related issues
Fixes #11982