Update combinations.php

This commit is contained in:
ptibogxiv 2020-12-21 15:43:45 +01:00 committed by GitHub
parent cba10bbd4d
commit 94cf393f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ if (($action == 'add' || $action == 'create') && empty($massaction) && !GETPOST(
$db->commit();
setEventMessages($langs->trans('RecordSaved'), null, 'mesgs');
}
} elseif ($valueid > 0) {
} elseif ($action === 'update' && $valueid > 0) {
if ($prodcomb->fetch($valueid) < 0) {
dol_print_error($db, $langs->trans('ErrorRecordNotFound'));
exit();