Outlook plugin 6.1, fails to save emails with attachment in Vtiger 6.3 + patch and 6.4
Running Outlook 2010 and Vtiger 6.4.
I did a upgrade from 6.2 -> 6.3 -> 6.3 patch -> 6.4.
Users started complaining about getting a error message: Object reference not set to an instance of an object.
I found out that this happens only when a email contains an attachment of any kind. If I try to save the same email, but uncheck "Include Attachments" the mail is saved without errors.
I have tried creating a free vtiger account, and tried to replicate the bug. It works fine, no bug. This is version 7.15.11
I have tried installing a clean 6.4 by installing 6.3 and replacing the htdocs folder with the 6.4. Same error, does not work.
Then I tried installing a clean 6.3, and that works, no error.
In my search for a solution (can't wait, boss i furius) I actually found a solution. The bug is not there in 6.3, it is introduced in the 6.3 patch, and is in the clean install of 6.4.
This is the file that contains the bug. vtigercrm-630-security-patch1\data\CRMEntity.php
I replaced it with this one, and now saving attachments work fine. \vtigercrm6.3.0\data\CRMEntity.php
I did a diff on the files, and there is a few lines added in the new file. one removed line:
--------------------------Added---------------------------- $save_file = 'true'; //only images are allowed for Image Attachmenttype
$fldvalue = $field_list;