You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed old status name showing twice in a transition notification (#4621)
<!--
Thanks for contributing to Hypha!
Please ensure your contributions pass all necessary linting/testing and
that the appropriate documentation has been updated.
-->
<!--
Describe briefly what your pull request changes. If this is resolving an
issue, please specify below via "Fixes #<Github Issue ID>"
-->
Fixes#4616. After updating to django-viewflow it looks like the
application status doesn't get updated until after the notification is
sent, when before this would happen before. Thus, getting the current
application status as the "new phase" resulted in a duplicate of the
"old phase", ie. `<USER> has updated the status of <APPLICATION>: Need
screening → Need screening`
## Test Steps
<!--
If step does not require manual testing, skip/remove this section.
Give a brief overview of the steps required for a user/dev to test this
contribution. Important things to include:
- Required user roles for where necessary (ie. "As a Staff Admin...")
- Clear & validatable expected results (ie. "Confirm the submit button
is now not clickable")
- Language that can be understood by non-technical testers if being
tested by users
-->
- [ ] Ensure slack & email notifications for application transitions
represent the actual transition that took place
Copy file name to clipboardExpand all lines: hypha/apply/activity/templates/messages/email/transition.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
{% load i18n %}
4
4
5
5
{% block content %}{# fmt:off #}
6
-
{% blocktrans with old_status=old_phase.public_name new_status=source.phase.public_name %}Your application is now in "{{ new_status }}" status (progressed from "{{ old_status }}").{% endblocktrans %}
6
+
{% blocktrans %}Your application is now in "{{ new_phase }}" status (progressed from "{{ old_phase }}").{% endblocktrans %}
7
7
8
8
{% trans "Please submit any questions related to your application here" %}: {{ request.scheme }}://{{ request.get_host }}{% url 'funds:submissions:comments' pk=source.pk %}
0 commit comments