mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 20:39:40 +00:00
validation fix for person ressource
This commit is contained in:
@@ -231,7 +231,7 @@ class PersonResource implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
->addViolation();
|
->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')
|
$context->buildViolation('You cannot associate a resource with the same person')
|
||||||
->addViolation();
|
->addViolation();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user