NEW join only the main document
This commit is contained in:
parent
65d20bdc61
commit
1ea8d47c84
@ -49,8 +49,6 @@ if ($action == 'presend') {
|
|||||||
// Special case
|
// Special case
|
||||||
if ($object->element == 'invoice_supplier') {
|
if ($object->element == 'invoice_supplier') {
|
||||||
$fileparams = dol_most_recent_file($diroutput.'/'.get_exdir($object->id, 2, 0, 0, $object, $object->element).$ref, preg_quote($ref, '/').'([^\-])+');
|
$fileparams = dol_most_recent_file($diroutput.'/'.get_exdir($object->id, 2, 0, 0, $object, $object->element).$ref, preg_quote($ref, '/').'([^\-])+');
|
||||||
} elseif ($object->element == 'societe') {
|
|
||||||
$fileparams = dol_most_recent_file($diroutput.'/'.$ref);
|
|
||||||
} else {
|
} else {
|
||||||
$fileparams = dol_most_recent_file($diroutput.'/'.$ref, preg_quote($ref, '/').'[^\-]+');
|
$fileparams = dol_most_recent_file($diroutput.'/'.$ref, preg_quote($ref, '/').'[^\-]+');
|
||||||
}
|
}
|
||||||
@ -102,8 +100,6 @@ if ($action == 'presend') {
|
|||||||
}
|
}
|
||||||
if ($object->element == 'invoice_supplier') {
|
if ($object->element == 'invoice_supplier') {
|
||||||
$fileparams = dol_most_recent_file($diroutput.'/'.get_exdir($object->id, 2, 0, 0, $object, $object->element).$ref, preg_quote($ref, '/').'([^\-])+');
|
$fileparams = dol_most_recent_file($diroutput.'/'.get_exdir($object->id, 2, 0, 0, $object, $object->element).$ref, preg_quote($ref, '/').'([^\-])+');
|
||||||
} elseif ($object->element == 'societe') {
|
|
||||||
$fileparams = dol_most_recent_file($diroutput.'/'.$ref);
|
|
||||||
} else {
|
} else {
|
||||||
$fileparams = dol_most_recent_file($diroutput.'/'.$ref, preg_quote($ref, '/').'[^\-]+');
|
$fileparams = dol_most_recent_file($diroutput.'/'.$ref, preg_quote($ref, '/').'[^\-]+');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user