Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Queue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
Queue
Merge requests
!754
Draft: Resolve "Allow adding students/staff using email/student number/name"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Draft: Resolve "Allow adding students/staff using email/student number/name"
99-allow-adding-students-staff-using-email-student-number-name
into
development
Overview
1
Commits
2
Pipelines
0
Changes
9
Closed
Draft: Resolve "Allow adding students/staff using email/student number/name"
Marina Mădăraş
requested to merge
99-allow-adding-students-staff-using-email-student-number-name
into
development
Feb 12, 2024
Overview
1
Commits
2
Pipelines
0
Changes
9
Make sure to read our
contributing guide
Closes
#99 (closed)
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
7b6997aa
2 commits,
Feb 20, 2024
9 files
+
115
−
33
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
src/main/java/nl/tudelft/queue/controller/EditionController.java
+
4
−
4
View file @ 7b6997aa
Edit in single-file editor
Open in Web IDE
Show full file
@@ -464,14 +464,14 @@ public class EditionController {
}
try
{
PersonDetailsDTO
person
=
pApi
.
getPersonBy
Username
(
dto
.
getUser
name
()).
block
();
PersonDetailsDTO
person
=
pApi
.
getPersonBy
Identifier
(
dto
.
getUser
Identifier
()).
block
();
return
checkDemoteThenAddSingle
(
person
,
edition
,
redirectAttributes
,
create
,
model
);
}
catch
(
WebClientResponseException
e
)
{
redirectAttributes
.
addFlashAttribute
(
"error"
,
String
.
format
(
"Person with
username
: %s cannot be found. "
+
"Make sure this person has logged in
to
our system before"
,
dto
.
getUser
name
()));
String
.
format
(
"Person with
the user identifier
: %s cannot be found. "
+
"Make sure this person has logged in our system before
.
"
,
dto
.
getUser
Identifier
()));
return
"redirect:/edition/"
+
editionId
+
"/participants/create"
;
}
}
Loading