Fix we lose the private not when closing proposal

This commit is contained in:
Laurent Destailleur 2017-10-18 11:12:59 +02:00
parent aa1ff189e1
commit 000c1bddb2

View File

@ -611,7 +611,8 @@ if (empty($reshook))
// prevent browser refresh from closing proposal several times
if ($object->statut == Propal::STATUS_VALIDATED)
{
$result=$object->cloture($user, GETPOST('statut'), GETPOST('note'));
$newprivatenote = dol_concatdesc($object->note_private, GETPOST('note_private','alpha'));
$result=$object->cloture($user, GETPOST('statut','int'), $newprivatenote);
if ($result < 0)
{
setEventMessages($object->error, $object->errors, 'errors');