Skip to content

Commit

Permalink
FIX Can not disabled an opened service line in a contract
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 3, 2016
1 parent 2eaa21e commit 09a9546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/contrat/card.php
Expand Up @@ -1643,7 +1643,7 @@
{
$tmpaction='activateline';
if ($objp->statut == 4) $tmpaction='unactivateline';
if (($tmpaction=='activateline' && $user->rights->contrat->activer) || ($tmpaction=='unactivateline' && $user->rights->contrat->unactiver)) {
if (($tmpaction=='activateline' && $user->rights->contrat->activer) || ($tmpaction=='unactivateline' && $user->rights->contrat->desactiver)) {
print '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&amp;ligne=' . $object->lines[$cursorline - 1]->id . '&amp;action=' . $tmpaction . '">';
print img_edit();
print '</a>';
Expand Down

0 comments on commit 09a9546

Please sign in to comment.