mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-06 00:14:36 +02:00
Show error message flash, when an validation error occured.
This commit is contained in:
parent
59748ecc22
commit
082a815f3a
3 changed files with 19 additions and 5 deletions
|
@ -264,7 +264,7 @@ class Part extends AttachmentContainingDBElement
|
|||
/**
|
||||
* @var float|null How much a single part unit weighs in gramms.
|
||||
* @ORM\Column(type="float", nullable=true)
|
||||
* @Assert\Positive()
|
||||
* @Assert\PositiveOrZero()
|
||||
*/
|
||||
protected $mass;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue