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