Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
4bba4e42
Verified
Commit
4bba4e42
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Handle non-existing groups in register object view
parent
babaefee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!266
Resolve "IndexError at /app/alsijil/event/246/: list index out of range [Ticket#75576]"
Pipeline
#51855
passed
3 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.rst
+5
-0
5 additions, 0 deletions
CHANGELOG.rst
aleksis/apps/alsijil/templates/alsijil/class_register/lesson.html
+1
-1
1 addition, 1 deletion
...apps/alsijil/templates/alsijil/class_register/lesson.html
aleksis/apps/alsijil/views.py
+1
-1
1 addition, 1 deletion
aleksis/apps/alsijil/views.py
with
7 additions
and
2 deletions
CHANGELOG.rst
+
5
−
0
View file @
4bba4e42
...
...
@@ -14,6 +14,11 @@ Changed
* Use start date of current SchoolTerm as default value for PersonalNote filter in overview.
Fixed
~~~~~
* Events without groups caused an error when not accessed through the week view.
`2.0rc7` - 2021-12-25
---------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/templates/alsijil/class_register/lesson.html
+
1
−
1
View file @
4bba4e42
...
...
@@ -50,7 +50,7 @@
{% has_perm "alsijil.edit_lessondocumentation_rule" user register_object as can_edit_lesson_documentation %}
{% has_perm "alsijil.edit_register_object_personalnote_rule" user register_object as can_edit_register_object_personalnote %}
{% if next_lesson_person or prev_lesson_person or
lesson_documentation
%}
{% if next_lesson_person or prev_lesson_person or
back_to_week_url
%}
<div
class=
"row margin-bottom z-depth-1 alsijil-nav-header"
>
<div
class=
"col s12 no-padding"
>
{# Back to week view #}
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/views.py
+
1
−
1
View file @
4bba4e42
...
...
@@ -293,7 +293,7 @@ def register_object(
)
if
back_url_is_safe
:
context
[
"
back_to_week_url
"
]
=
back_url
el
se
:
el
if
register_object
.
get_groups
().
all
()
:
context
[
"
back_to_week_url
"
]
=
reverse
(
"
week_view_by_week
"
,
args
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment