Fix: Can send even after status validated.

This commit is contained in:
Laurent Destailleur 2011-12-12 10:34:05 +01:00
parent 55bce13bfb
commit ae0fda9b5f

View File

@ -1568,7 +1568,7 @@ if ($id > 0 || ! empty($ref))
}
// Send
if ($object->statut == 1)
if ($object->statut == 1 || $object->statut == 2)
{
$propref = dol_sanitizeFileName($object->ref);
$file = $conf->propale->dir_output . '/'.$propref.'/'.$propref.'.pdf';