mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Added translations for PartLot Validation errors.
This commit is contained in:
parent
50cca40f77
commit
92cc73774c
2 changed files with 20 additions and 2 deletions
|
@ -92,8 +92,8 @@ class ValidPartLotValidator extends ConstraintValidator
|
|||
|
||||
//Amount increasment is not allowed
|
||||
if ($db_lot && $value->getAmount() > $db_lot['amount']) {
|
||||
$this->context->buildViolation('validator.part_lot.location_full.no_increasment')
|
||||
->setParameter('{{ old_amount }}', $db_lot['amount'])
|
||||
$this->context->buildViolation('validator.part_lot.location_full.no_increase')
|
||||
->setParameter('{{ old_amount }}', (string) $db_lot['amount'])
|
||||
->atPath('amount')->addViolation();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue