Skip to content

Commit

Permalink
Fix student autotest display when token_end_date is nil (#7128)
Browse files Browse the repository at this point in the history
  • Loading branch information
umututku03 authored Jul 19, 2024
1 parent ae1cdb2 commit d284594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- Fix MathJax rendering in annotations for Jupyter notebooks (#7084)
- Fix MathJax rendering of released overall comments (#7084)
- Fix rename confirmation check triggering even upon no rename input (#7124)
- Ensured that the assignment deadline is used as a placeholder if token_end_date is not present. (#7128)

### 🔧 Internal changes

Expand Down
2 changes: 1 addition & 1 deletion app/views/automated_tests/student_interface.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<p>
<strong><%= Assignment.human_attribute_name(:token_end_date) %>:</strong>
<%= l(@assignment.token_end_date) %>
<%= @assignment.token_end_date.present? ? l(@assignment.token_end_date) : l(@grouping.collection_date) %>
</p>

<% unless @assignment.unlimited_tokens || @assignment.non_regenerating_tokens %>
Expand Down

0 comments on commit d284594

Please sign in to comment.