mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-16 06:21:28 +01:00
remove overkill setEventMessage()
This commit is contained in:
@@ -759,11 +759,9 @@ class Reception extends CommonObject
|
|||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
if (!empty($product->status_batch) && empty($batch)) {
|
if (!empty($product->status_batch) && empty($batch)) {
|
||||||
$this->error = $langs->trans('ErrorProductNeedBatchNumber', $product->ref);
|
$this->error = $langs->trans('ErrorProductNeedBatchNumber', $product->ref);
|
||||||
setEventMessages($this->error, $this->errors, 'errors');
|
|
||||||
return -1;
|
return -1;
|
||||||
} elseif (empty($product->status_batch) && !empty($batch)) {
|
} elseif (empty($product->status_batch) && !empty($batch)) {
|
||||||
$this->error = $langs->trans('ErrorProductDoesNotNeedBatchNumber', $product->ref);
|
$this->error = $langs->trans('ErrorProductDoesNotNeedBatchNumber', $product->ref);
|
||||||
setEventMessages($this->error, $this->errors, 'errors');
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user