From ced601e566d84624364f8e3a698eddd427a85f85 Mon Sep 17 00:00:00 2001
From: Li Jun <buli@deloitte.com.cn>
Date: 星期二, 19 四月 2022 20:51:25 +0800
Subject: [PATCH] Rental Apply Issue Fix

---
 force-app/main/default/classes/RentalApplyController.cls |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/classes/RentalApplyController.cls b/force-app/main/default/classes/RentalApplyController.cls
index 88b61a6..2d7b16b 100644
--- a/force-app/main/default/classes/RentalApplyController.cls
+++ b/force-app/main/default/classes/RentalApplyController.cls
@@ -42,6 +42,12 @@
             isNewMode = false;
             Rental_Apply__c rentalApplyData = [select Id,RecordTypeId,AWS_Data_Id__c,Loaner_medical_Staff__c,Loaner_medical_Staff__r.AWS_Data_Id__c from Rental_Apply__c where id =: obj.Id];
             rtTypeId = rentalApplyData.RecordTypeId;
+            //Update record type for Rental Apply by Li Jun 20220419 start
+            if(ApexPages.currentPage().getParameters().containskey('RecordType')){
+                rtTypeId = ApexPages.currentPage().getParameters().get('RecordType');
+            }
+            controller.getRecord().put('RecordTypeId',rtTypeId);
+            //Update record type for Rental Apply  by Li Jun 20220419 end
             AWSDataId = rentalApplyData.AWS_Data_Id__c;
             Map<String,String> sfIdToAWSIdMap = new Map<String,String>();
             if(rentalApplyData.Loaner_medical_Staff__r.Id != null){

--
Gitblit v1.9.1