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
d9b61a53
Commit
d9b61a53
authored
1 year ago
by
permcu
Browse files
Options
Downloads
Patches
Plain Diff
Fix backend documentation update
Did overwrite already set props with "".
parent
c492cab2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!352
Draft: Resolve "Add dialog with each lesson's students"
,
!350
Resolve "Add simple course book list"
Pipeline
#169773
failed
1 year ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/alsijil/schema/documentation.py
+7
-3
7 additions, 3 deletions
aleksis/apps/alsijil/schema/documentation.py
with
7 additions
and
3 deletions
aleksis/apps/alsijil/schema/documentation.py
+
7
−
3
View file @
d9b61a53
...
...
@@ -165,9 +165,13 @@ class DocumentationBatchCreateOrUpdateMutation(graphene.Mutation):
if
not
info
.
context
.
user
.
has_perm
(
"
alsijil.edit_documentation_rule
"
,
obj
):
raise
PermissionDenied
()
obj
.
topic
=
doc
.
topic
or
""
obj
.
homework
=
doc
.
homework
or
""
obj
.
group_note
=
doc
.
group_note
or
""
if
doc
.
topic
:
obj
.
topic
=
doc
.
topic
if
doc
.
homework
:
obj
.
homework
=
doc
.
homework
if
doc
.
group_note
:
obj
.
group_note
=
doc
.
group_note
obj
.
save
()
return
obj
...
...
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