|
@@ -1175,6 +1175,15 @@ function pdf_writelinedesc(&$pdf,$object,$i,$outputlangs,$w,$h,$posx,$posy,$hide
|
|
if (empty($reshook))
|
|
if (empty($reshook))
|
|
{
|
|
{
|
|
$labelproductservice=pdf_getlinedesc($object,$i,$outputlangs,$hideref,$hidedesc,$issupplierline);
|
|
$labelproductservice=pdf_getlinedesc($object,$i,$outputlangs,$hideref,$hidedesc,$issupplierline);
|
|
|
|
+
|
|
|
|
+ //var_dump($labelproductservice);exit;
|
|
|
|
+
|
|
|
|
+ // Fix bug of some HTML editors that replace links <img src="http://localhostgit/viewimage.php?modulepart=medias&file=image/efd.png" into <img src="http://localhostgit/viewimage.php?modulepart=medias&file=image/efd.png"
|
|
|
|
+ // We make the reverse, so PDF generation has the real URL.
|
|
|
|
+ $labelproductservice = preg_replace('/(<img[^>]*src=")([^"]*)(&)([^"]*")/', '\1\2&\4', $labelproductservice, -1, $nbrep);
|
|
|
|
+
|
|
|
|
+ //var_dump($labelproductservice);exit;
|
|
|
|
+
|
|
// Description
|
|
// Description
|
|
$pdf->writeHTMLCell($w, $h, $posx, $posy, $outputlangs->convToOutputCharset($labelproductservice), 0, 1, false, true, 'J',true);
|
|
$pdf->writeHTMLCell($w, $h, $posx, $posy, $outputlangs->convToOutputCharset($labelproductservice), 0, 1, false, true, 'J',true);
|
|
$result.=$labelproductservice;
|
|
$result.=$labelproductservice;
|