The problem seems to be in AttachmentSelector.xml in the rendering macro definition, in #attachmentPicker_displayAttachment:
When there's no defaultValue macro parameter specified and the image specified in the call to the attachment selector macro doesn't exist, then $attachmentResource is empty and since #attachmentPicker_displayAttachment is called with $forceElement set to true at the following place, the image reference is set to be "filename" which doesn't exist and cause the warnings:
What I don't understand is the intent for $forceElement and why it's always passed as true. Setting it to false fixes the issue. Marius Dumitru Florea it seems you developed this part, do you remember why there's $forceElement and why it's always passed as true? Thanks |