mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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();
|
->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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user