Skip to content
Snippets Groups Projects
Verified Commit 1f2390ad authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'master' into 179-lesson-documentations-are-not-unique-ticket-75177

parents 95b4ee28 60e72e79
No related branches found
No related tags found
1 merge request!225Resolve "Lesson documentations are not unique [Ticket#75177]"
Pipeline #29543 failed
...@@ -12,6 +12,14 @@ Unreleased ...@@ -12,6 +12,14 @@ Unreleased
Fixed Fixed
~~~~~ ~~~~~
* Fix problems with displaying dates for events in the week and lesson view.
`2.0rc5`_ - 2021-08-12
----------------------
Fixed
~~~~~
* The _Delete personal note_ action didn't work due to wrong usage of ``bulk_update``. * The _Delete personal note_ action didn't work due to wrong usage of ``bulk_update``.
* Groups and persons were shown multiple times in some forms due to filtering by permissions. * Groups and persons were shown multiple times in some forms due to filtering by permissions.
* Unique constraint on lesson documentations did not work and caused racey duplicates. * Unique constraint on lesson documentations did not work and caused racey duplicates.
...@@ -181,3 +189,4 @@ Fixed ...@@ -181,3 +189,4 @@ Fixed
.. _2.0rc2: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0rc2 .. _2.0rc2: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0rc2
.. _2.0rc3: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0rc3 .. _2.0rc3: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0rc3
.. _2.0rc4: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0rc4 .. _2.0rc4: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0rc4
.. _2.0rc5: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0rc5
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -179,12 +179,11 @@ ...@@ -179,12 +179,11 @@
{% with absences=prev_lesson.get_absences tardinesses=prev_lesson.get_tardinesses extra_marks=prev_lesson.get_extra_marks %} {% with absences=prev_lesson.get_absences tardinesses=prev_lesson.get_tardinesses extra_marks=prev_lesson.get_extra_marks %}
{% has_perm "alsijil.view_lessondocumentation_rule" user prev_lesson as can_view_prev_lesson_documentation %} {% has_perm "alsijil.view_lessondocumentation_rule" user prev_lesson as can_view_prev_lesson_documentation %}
{% if prev_doc and can_view_prev_lesson_documentation %} {% if prev_doc and can_view_prev_lesson_documentation %}
{% weekday_to_date prev_lesson.week prev_lesson.period.weekday as prev_date %}
<div class="col s12" id="previous-lesson"> <div class="col s12" id="previous-lesson">
<div class="card"> <div class="card">
<div class="card-content"> <div class="card-content">
<span class="card-title"> <span class="card-title">
{% blocktrans %}Overview: Previous lesson{% endblocktrans %} ({{ prev_date }}, {% blocktrans %}Overview: Previous lesson{% endblocktrans %} ({{ prev_doc.date_formatted }},
{% blocktrans with period=prev_lesson.period.period %}{{ period }}. period{% endblocktrans %}) {% blocktrans with period=prev_lesson.period.period %}{{ period }}. period{% endblocktrans %})
</span> </span>
......
...@@ -353,10 +353,9 @@ ...@@ -353,10 +353,9 @@
{% for note in person.personal_notes %} {% for note in person.personal_notes %}
<blockquote> <blockquote>
{{ note.remarks }} {{ note.remarks }}
{% weekday_to_date week note.register_object.period.weekday as note_date %}
<em class="right"> <em class="right">
<a href="{{ note.register_object.alsijil_url }}"> <a href="{{ note.register_object.alsijil_url }}">
{{ note.date }}, {{ note.register_object.get_subject.name }} {{ note.date_formatted }}, {{ note.register_object.get_subject.name }}
</a> </a>
</em> </em>
</blockquote> </blockquote>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment