2
0
forked from Wavyzz/dolibarr

FIX pdf thumb for expense report

This commit is contained in:
Laurent Destailleur
2018-04-16 18:17:35 +02:00
parent 0d0da234b1
commit f19abe38d7

View File

@@ -5281,7 +5281,7 @@ function get_exdir($num, $level, $alpha, $withoutslash, $object, $modulepart)
// TODO
// We will enhance here a common way of forging path for document storage
// Here, object->id, object->ref and modulepart are required.
if (in_array($modulepart, array('thirdparty','contact','member','propal','proposal','commande','order','facture','invoice','shipment')))
if (in_array($modulepart, array('thirdparty','contact','member','propal','proposal','commande','order','facture','invoice','shipment','expensereport')))
{
$path=($object->ref?$object->ref:$object->id);
}