Merge pull request #22095 from Hystepik/develop#2
Fix : Yogosha report 12245 bad field verification
This commit is contained in:
commit
f38408e57a
@ -254,6 +254,12 @@ if (empty($reshook)) {
|
||||
$error++;
|
||||
}
|
||||
|
||||
$approverslist = $object->fetch_users_approver_holiday();
|
||||
if (!in_array($approverid, $approverslist)) {
|
||||
setEventMessages($langs->transnoentitiesnoconv('InvalidValidator'), null, 'errors');
|
||||
$error++;
|
||||
}
|
||||
|
||||
$result = 0;
|
||||
|
||||
if (!$error) {
|
||||
|
||||
@ -58,6 +58,7 @@ ConfirmDeleteCP=Confirm the deletion of this leave request?
|
||||
ErrorCantDeleteCP=Error you don't have the right to delete this leave request.
|
||||
CantCreateCP=You don't have the right to make leave requests.
|
||||
InvalidValidatorCP=You must choose the approver for your leave request.
|
||||
InvalidValidator=The user chosen isn't an approver.
|
||||
NoDateDebut=You must select a start date.
|
||||
NoDateFin=You must select an end date.
|
||||
ErrorDureeCP=Your leave request does not contain working day.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user