Fixed  Attachment Model Bug

Nickolas

Member
okay, I think i find a bug... I just examining the code and i found this...

Model/Attachment.php

public function deleteAttachmentData($dataId)
{
$dataDw = XenForo_DataWriter::create('XenForo_DataWriter_AttachmentData', XenForo_DataWriter::ERROR_SILENT);
$dataDw->setExistingData($dataDw);
$dataDw->delete();
}

I think the correct line is...

$dataDw->setExistingData($dataId);
 
Top Bottom