FIX not remove value of others extra-fields on update extras action
This commit is contained in:
parent
d8891130f5
commit
d16f8b68db
1 changed files with 3 additions and 1 deletions
|
|
@ -351,9 +351,11 @@ if (preg_match('/^set(\w+)$/', $action, $reg) && GETPOST('id', 'int') > 0 && !em
|
|||
if ($action == "update_extras" && GETPOST('id', 'int') > 0 && !empty($permissiontoadd)) {
|
||||
$object->fetch(GETPOST('id', 'int'));
|
||||
|
||||
$attribute = GETPOST('attribute', 'aZ09');
|
||||
|
||||
$error = 0;
|
||||
|
||||
$ret = $extrafields->setOptionalsFromPost(null, $object, '@GETPOSTISSET');
|
||||
$ret = $extrafields->setOptionalsFromPost(null, $object, $attribute);
|
||||
if ($ret < 0) {
|
||||
$error++;
|
||||
setEventMessages($extrafields->error, $object->errors, 'errors');
|
||||
|
|
|
|||
Loading…
Reference in a new issue