Skip to content

Commit

Permalink
Fix for regression around deleting job execution records
Browse files Browse the repository at this point in the history
#4
 - Occurred when using Custom Metadata mode.
  • Loading branch information
Andrew Fawcett authored and Andrew Fawcett committed Feb 19, 2017
1 parent 9eae6de commit 7b0861c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rolluptool/src/classes/RollupService.cls
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,12 @@ global with sharing class RollupService
**/
public static void clearCalculateJobId(Set<String> lookupIds)
{
delete [select Id from LookupRollupCalculateJob__c where LookupRollupSummaryId__c in :lookupIds];
// LookupRollupSummaryId__c are 18 char Ids ensure the ones we filter on are as well
Set<String> char18Ids = new Set<String>();
for(String lookupId : lookupIds) {
char18Ids.add((String) ((Id)lookupId));
}
delete [select Id from LookupRollupCalculateJob__c where LookupRollupSummaryId__c in :char18Ids];
}

/**
Expand Down

0 comments on commit 7b0861c

Please sign in to comment.