Skip to content
Snippets Groups Projects
Commit 5ea6b731 authored by its4you's avatar its4you
Browse files

Merge remote-tracking branch 'upstream/master'

parents 2c0c4e5d 84d66819
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