Skip to content

Commit

Permalink
Merge pull request #8117 from atm-quentin/6.0
Browse files Browse the repository at this point in the history
FIX update_extras on fourn card
  • Loading branch information
eldy committed Feb 1, 2018
2 parents bdfbe46 + c80fa48 commit cba0447
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions htdocs/fourn/card.php
Expand Up @@ -101,6 +101,21 @@
$result=$object->setPaymentMethods(GETPOST('mode_reglement_supplier_id','int'));
if ($result < 0) dol_print_error($db,$object->error);
}
if ($action == 'update_extras') {
$object->fetch($id);

// Fill array 'array_options' with data from update form
$extralabels = $extrafields->fetch_name_optionals_label($object->table_element);
$ret = $extrafields->setOptionalsFromPost($extralabels, $object, GETPOST('attribute'));

if ($ret < 0) $error++;
if (! $error)
{
$result = $object->insertExtraFields();
if ($result < 0) $error++;
}
if ($error) $action = 'edit_extras';
}
}


Expand Down

0 comments on commit cba0447

Please sign in to comment.