Skip to content

Commit 802c4dc

Browse files
committed
fixed issue where first,last,email change created a new registration rather than update old
1 parent f9b1086 commit 802c4dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

force-app/main/default/classes/SummitEventsRegisterController.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ public with sharing class SummitEventsRegisterController {
494494
}
495495
}
496496

497-
eventRegistration = rCRUD.updateRegistration(eventRegistration, eventInformation.registrationId, registrantAudience, eventFeeList);
497+
eventRegistration = rCRUD.updateRegistration(eventRegistration, incomingEventRegistrationId, registrantAudience, eventFeeList);
498498

499499
String dayOfWeek = SummitEventsShared.convertDateToDatetime(evtInstance.Instance_Start_Date__c, null, '').format('EEEE');
500500
//Insert pre-chosen appointments for appointments page

force-app/test/default/classes/SummitEventsRegister_TEST.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ private class SummitEventsRegister_TEST {
281281
AND Registrant_Email__c = '[email protected]'
282282
];
283283

284-
System.assertEquals(registrations.size(), 1);
284+
System.assertEquals(registrations.size(), 0);
285285

286286
registrations = [
287287
SELECT Id, Name, Registrant_First_Name__c, Registrant_Last_Name__c, Registrant_Email__c

0 commit comments

Comments
 (0)