N°6502 - Fix AttributeImage::GetAsHtml() using download URL instead of display URL which triggers download listeners

This commit is contained in:
Molkobain
2023-07-05 10:34:42 +02:00
parent 340b982d77
commit 8292b16387

View File

@@ -8750,7 +8750,7 @@ class AttributeImage extends AttributeBlob
return 'data:'.$value->GetMimeType().';base64,'.base64_encode($value->GetData());
}
return $value->GetDownloadURL(get_class($oHostObject), $oHostObject->GetKey(), $this->GetCode());
return $value->GetDisplayURL(get_class($oHostObject), $oHostObject->GetKey(), $this->GetCode());
}
public static function GetFormFieldClass()