Skip to content

Commit

Permalink
fix: Update registration togglz
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPalafox committed Dec 5, 2023
1 parent 6731dbf commit 96801e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private String createMinimalProfile(Registration registration, boolean usedCaptc
}
recordNameManager.createRecordName(orcid, name);

if (Features.EVENTS.isActive() && registration.getAffiliationForm() != null) {
if (Features.REGISTRATION_2_0.isActive() && registration.getAffiliationForm() != null) {
Affiliation affiliation = registration.getAffiliationForm().toAffiliation();
affiliationsManager.createEmploymentAffiliation(orcid, (Employment) affiliation, false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public void validateRegistrationFields(HttpServletRequest request, Registration
regEmailValidate(request, reg, false, false);
registerTermsOfUseValidate(reg);

if (Features.EVENTS.isActive() && reg.getAffiliationForm() != null) {
if (Features.REGISTRATION_2_0.isActive() && reg.getAffiliationForm() != null) {
AffiliationForm affiliationForm = reg.getAffiliationForm();
if (!affiliationForm.getAffiliationType().getValue().equals("Employment")) {
setError(affiliationForm.getAffiliationType(), "Invalid affiliation type");
Expand Down

0 comments on commit 96801e1

Please sign in to comment.