mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
validation fix for person ressource
This commit is contained in:
parent
61f010f5ad
commit
6331d8fd3e
@ -231,7 +231,7 @@ class PersonResource implements TrackCreationInterface, TrackUpdateInterface
|
||||
->addViolation();
|
||||
}
|
||||
|
||||
if ($this->person === $this->personOwner) {
|
||||
if (null !== $this->person && $this->person === $this->personOwner) {
|
||||
$context->buildViolation('You cannot associate a resource with the same person')
|
||||
->addViolation();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user