Skip to content
Snippets Groups Projects
Commit 1a3d8b5a authored by Aurélien Stride's avatar Aurélien Stride
Browse files

FIX : adjusted test for affecting supplier reference

parent e2072999
Branches
Tags
No related merge requests found
......@@ -121,9 +121,10 @@ include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include,
if ($action == 'setref_supplier' && $user->rights->fournisseur->commande->creer)
{
$object->ref_supplier=GETPOST('ref_supplier','alpha'); // ADD : ref_supplier to object property, otherwise not visibly updated on change
$result=$object->setValueFrom('ref_supplier',GETPOST('ref_supplier','alpha'));
if ($result < 0) dol_print_error($db, $object->error);
else $object->ref_supplier=GETPOST('ref_supplier','alpha'); // ADD : ref_supplier to object property, otherwise not visibly updated on change
}
// conditions de reglement
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment