mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Updating violation message
This commit is contained in:
parent
a7c5f464b2
commit
fe825e4979
@ -209,8 +209,6 @@ class AccompanyingPeriod
|
|||||||
|
|
||||||
|
|
||||||
/// VALIDATION function
|
/// VALIDATION function
|
||||||
|
|
||||||
|
|
||||||
public function isDateConsistent(ExecutionContextInterface $context) {
|
public function isDateConsistent(ExecutionContextInterface $context) {
|
||||||
if ($this->isOpen()) {
|
if ($this->isOpen()) {
|
||||||
return;
|
return;
|
||||||
@ -218,7 +216,7 @@ class AccompanyingPeriod
|
|||||||
|
|
||||||
if (! $this->isClosingAfterOpening()) {
|
if (! $this->isClosingAfterOpening()) {
|
||||||
$context->addViolationAt('dateClosing',
|
$context->addViolationAt('dateClosing',
|
||||||
'validation.PersonHistoryFile.constraint.dateOfClosing_before_dateOfOpening',
|
'validation.AccompanyingPeriod.constraint.dateOfClosing_before_dateOfOpening',
|
||||||
array(), null);
|
array(), null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user