Skip to content

Commit

Permalink
preselect field of study text
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahar-bn committed Jun 29, 2024
1 parent a182664 commit de53f09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spz/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def signupinternal(course_id):
form.state.data = o_auth_token.state
form.first_name.data = o_auth_user_data['given_name']
form.last_name.data = o_auth_user_data['family_name']
form.origin.data = o_auth_user_data['fieldOfStudyText']
form.mail.data = o_auth_user_data['eduperson_principal_name']
form.confirm_mail.data = o_auth_user_data['eduperson_principal_name']
form.tag.data = o_auth_user_data['matriculationNumber'] if '[email protected]' in o_auth_user_data[
Expand Down Expand Up @@ -833,7 +834,7 @@ def course(id):
flash(_('Der Kurs kann nicht gelöscht werden, weil aktive Teilnahmen bestehen.'), 'error')
db.session.rollback()
return dict(course=course)

# Delete roles associated with the course before deleting the course
models.Role.query.filter_by(course_id=course.id).delete()
# Delete Logentrys
Expand Down

0 comments on commit de53f09

Please sign in to comment.