Skip to content
Snippets Groups Projects
Commit cabed8e9 authored by rdb's avatar rdb
Browse files

FIX Comments profile image

Fix Comments profile image to use the public url
parent c0f5f8bc
No related branches found
No related tags found
No related merge requests found
......@@ -118,14 +118,14 @@ class ModComments_Record_Model extends Vtiger_Record_Model {
if (!empty($customer)) {
$recordModel = Vtiger_Record_Model::getInstanceById($customer);
$imageDetails = $recordModel->getImageDetails();
if(!empty($imageDetails)) {
return $imageDetails[0]['path'].'_'.$imageDetails[0]['name'];
if (!empty($imageDetails[0]['url'])) {
return $imageDetails[0]['url'];
} else
return vimage_path('CustomerPortal.png');
} else {
$imagePath = $commentor->getImageDetails();
if (!empty($imagePath[0]['name'])) {
return $imagePath[0]['path'] . '_' . $imagePath[0]['name'];
$imageDetails = $commentor->getImageDetails();
if (!empty($imageDetails[0]['url'])) {
return $imageDetails[0]['url'];
}
}
} elseif ($isMailConverterType) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment