Fix: We use dolibarr_details as type of DolEditor here, because we

must not accept images as description is included into PDF and not
accepted by TCPDF.
This commit is contained in:
Laurent Destailleur 2012-10-03 14:52:01 +02:00
parent 1d9e77a53d
commit a821d6cafe

View File

@ -952,7 +952,8 @@ else
// Description (used in invoice, propal...)
print '<tr><td valign="top">'.$langs->trans("Description").'</td><td colspan="2">';
$doleditor = new DolEditor('desc', $object->description, '', 160, 'dolibarr_notes', '', false, true, $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC, 4, 90);
// We use dolibarr_details as type of DolEditor here, because we must not accept images as description is included into PDF and not accepted by TCPDF.
$doleditor = new DolEditor('desc', $object->description, '', 160, 'dolibarr_details', '', false, true, $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC, 4, 90);
$doleditor->Create();
print "</td></tr>";