Skip to content

Commit

Permalink
Fix: doublon (merge problem?)
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed May 18, 2016
1 parent 43cb646 commit c7dda59
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions htdocs/comm/propal.php
Expand Up @@ -562,15 +562,6 @@
}
}

// Reopen proposal
else if ($action == 'confirm_reopen' && $user->rights->propal->cloturer && ! GETPOST('cancel'))
{
// prevent browser refresh from reopening proposal several times
if ($object->statut == Propal::STATUS_SIGNED || $object->statut == Propal::STATUS_NOTSIGNED || $object->statut == Propal::STATUS_BILLED) {
$object->reopen($user, 1);
}
}

// Close proposal
else if ($action == 'setstatut' && $user->rights->propal->cloturer && ! GETPOST('cancel'))
{
Expand All @@ -591,17 +582,6 @@
}
}

// Classify billed
else if ($action == 'classifybilled' && $user->rights->propal->cloturer)
{
$result=$object->cloture($user, 4, '');
if ($result < 0)
{
setEventMessages($object->error, $object->errors, 'errors');
$error++;
}
}

// Reopen proposal
else if ($action == 'confirm_reopen' && $user->rights->propal->cloturer && ! GETPOST('cancel'))
{
Expand All @@ -617,20 +597,6 @@
}
}

// Close proposal
else if ($action == 'setstatut' && $user->rights->propal->cloturer && ! GETPOST('cancel'))
{
if (! GETPOST('statut')) {
setEventMessage($langs->trans("ErrorFieldRequired", $langs->transnoentities("CloseAs")), 'errors');
$action = 'statut';
} else {
// prevent browser refresh from closing proposal several times
if ($object->statut == Propal::STATUS_VALIDATED) {
$object->cloture($user, GETPOST('statut'), GETPOST('note'));
}
}
}

include DOL_DOCUMENT_ROOT.'/core/actions_printing.inc.php';


Expand Down

0 comments on commit c7dda59

Please sign in to comment.