[Vtigercrm-developers] 6.4.0 change to CRMEntity.php?

Alan Lord alanslists at gmail.com
Fri Oct 16 12:33:51 GMT 2015


In 6.4.0 is this new chunk of code at line 140:

>                 $save_file = 'true';
>                 //only images are allowed for Image Attachmenttype
>                 $mimeType = mime_content_type($file_details['tmp_name']);
>                 $mimeTypeContents = explode('/', $mimeType);
>                 // For contacts and products we are sending attachmentType as value
>                 if ($attachmentType == 'Image' || ($file_details['size'] && $mimeTypeContents[0] == 'image')) {
>                         $save_file = validateImageFile($file_details);
>                 }
>                 if ($save_file == 'false') {
>                         return false;
>                 }

Note the test line:

>  if ($attachmentType == 'Image' || ($file_details['size'] && $mimeTypeContents[0] == 'image')) {

I just searched the whole CRMEntity.php file and can't find 
$attachmentType *anywhere* else in the file... Is that correct?

Al



More information about the vtigercrm-developers mailing list