Fix not not saved

This commit is contained in:
Laurent Destailleur 2018-04-06 19:26:24 +02:00
parent 77f2b137b5
commit 84426c69e3

View File

@ -112,7 +112,7 @@ if (empty($reshook)) {
} else {
$object->name = trim(GETPOST("nom",'nohtml'));
$object->nom = $object->name; // For backward compatibility
$object->note = trim(GETPOST("nom",'none'));
$object->note = trim(GETPOST("note",'none'));
// Fill array 'array_options' with data from add form
$ret = $extrafields->setOptionalsFromPost($extralabels,$object);