Skip to content

Commit

Permalink
digitalfox#106 process with proposition should be on "on going" page …
Browse files Browse the repository at this point in the history
…(#253)

* digitalfox#106 process with proposition should be on "on going" page
  • Loading branch information
rnudb authored Jan 16, 2023
1 parent 1320fe7 commit 045d761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# v1.18.0 (xxxx-xx-xx)
- Fix a bug where processes with a pending proposition where considered to be closed
- Add prequalification info on interview minute
- Update prequalification color in process details

Expand Down
3 changes: 2 additions & 1 deletion interview/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ def close_process(request, process_id):

form = CloseForm(request.POST, instance=process)
if form.is_valid():
form.instance.end_date = timezone.now()
if form.instance.state != Process.JOB_OFFER:
form.instance.end_date = timezone.now()
form.save()
log_action(False, process, request.user, close_process)
# TODO manage errors
Expand Down

0 comments on commit 045d761

Please sign in to comment.