• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Duplicate Wrong variable used in XenResource_AttachmentHandler_Version


Well-known member
protected function _canUploadAndManageAttachments(array $contentData, array $viewingUser)
$resourceModel = $this->_getResourceModel();
if (!empty($contentData['resource_id']))
$resource = $resourceModel->getResourceById($attachment['content_id']);
if ($resource)

$attachment should be $contentData

I think nobody have run into this, because $contentData is always empty and the code is AFAIK never run.