travis
This commit is contained in:
parent
de87321c15
commit
37c66c2ece
@ -332,7 +332,8 @@ class FormProduct
|
||||
if ($adddefault)
|
||||
$return .= '<option value="0">' . $langs->trans("Default") . '</option>';
|
||||
|
||||
foreach ( $measuringUnits->records as $lines ) {
|
||||
foreach ($measuringUnits->records as $lines)
|
||||
{
|
||||
$return .= '<option value="' . $lines->code . '"';
|
||||
if ($key == $default) {
|
||||
$return .= ' selected';
|
||||
|
||||
@ -227,13 +227,10 @@ if ($action == "correct_stock")
|
||||
); // We do not change value of stock for a correction
|
||||
}
|
||||
|
||||
if ($result > 0)
|
||||
{
|
||||
if ($result > 0) {
|
||||
header("Location: " . $_SERVER["PHP_SELF"] . "?id=" . $id);
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
exit();
|
||||
} else {
|
||||
$error ++;
|
||||
setEventMessages($product->error, $product->errors, 'errors');
|
||||
$action = 'correction';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user