Skip to content

Commit

Permalink
Fix: Test must never be done on a translated string
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 8, 2013
1 parent 3c0c901 commit b0e1834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/compta/facture.php
Expand Up @@ -1422,7 +1422,7 @@
}
}

elseif ($action == 'updateligne' && $user->rights->facture->creer && $_POST['save'] == $langs->trans('Save'))
elseif ($action == 'updateligne' && $user->rights->facture->creer && ! GETPOST('cancel'))
{
if (! $object->fetch($id) > 0) dol_print_error($db);
$object->fetch_thirdparty();
Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/fiche.php
Expand Up @@ -369,7 +369,7 @@
/*
* Mise a jour d'une ligne dans la commande
*/
else if ($action == 'update_line' && $user->rights->fournisseur->commande->creer && $_POST['save'] == $langs->trans('Save'))
else if ($action == 'update_line' && $user->rights->fournisseur->commande->creer && ! GETPOST('cancel'))
{
if ($_POST["elrowid"])
{
Expand Down

0 comments on commit b0e1834

Please sign in to comment.