0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-03-16 22:33:34 +00:00

Merge pull request from tfreier/hotfix

Avoid creating img tag if there is no product image
This commit is contained in:
Jim Mackin 2016-04-05 15:21:47 +01:00
commit a66c3e2d98

View file

@ -70,8 +70,8 @@ class templateParser{
$value='';
}
}
if ($name === 'aos_products_product_image'){
$value = '<img src="'.$value.'"width="50" height="50"/>';
if ($name === 'aos_products_product_image' && !empty($value)){
$value = '<img src="'.$value.'"width="50" height="50"/>';
}
if ($name === 'aos_products_quotes_product_qty'){
$sep = get_number_seperators();