-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client profile and UI changes #282
Conversation
1. Get Recommendations without profile builder 2. Batch job fix for "Email;Sms" 3. UI enhancements for refer "Mobile Phone Carrier"
@@ -262,7 +262,9 @@ public with sharing class EmailService { | |||
} | |||
// update any tasks that have been completed | |||
if (!tasksToUpdate.isEmpty()) { | |||
update Security.stripInaccessible(AccessType.UPDATABLE, tasksToUpdate).getRecords(); | |||
map<id,Task> tskMap = new map<id,Task>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the need of Map<Id, Task> in this use case? The list variable can be directly used instead of adding to a map.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List will contain a duplicate id and running to the "System.ListException: Duplicate id in list error"
https://salesforcescool.blogspot.com/2018/11/systemlistexception-duplicate-id-in.html?m=1
// hard filters are currently Age | ||
public static list<Service__c> primaryQuery(Client_Profile__c client, String filterList) { | ||
if(Schema.Client_Profile__c.SObjectType == Id.valueOf(client.id).getSobjectType()) { | ||
//decimal age = calculateAge(client.Date_Of_Birth__c); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the review comments.
Removing the commented line
Critical Changes
Changes
Issues Closed