Skip to content

Commit

Permalink
Ensure job seeker has a valid diagnosis to certify an hire
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisfreitag committed Jan 23, 2025
1 parent fda5e8f commit e6c5597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itou/www/apply/views/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _accept(request, company, job_seeker, error_url, back_url, template_name, ex
with transaction.atomic():
if form_personal_data:
form_personal_data.save()
if settings.API_PARTICULIER_TOKEN:
if valid_diagnosis and settings.API_PARTICULIER_TOKEN:
valid_diagnosis.certify_criteria()
if form_user_address:
form_user_address.save()
Expand Down

0 comments on commit e6c5597

Please sign in to comment.