Skip to content

Commit

Permalink
Merge pull request #178 from Salesforce-org-Impact-Labs/lwc_Service_Reqs
Browse files Browse the repository at this point in the history
checkmarx bug fixes
  • Loading branch information
AIrwin33 authored Aug 13, 2020
2 parents 0e22b75 + fb1dfcf commit c83bdea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<design:component label="Recommended Services" >
<design:attribute name="FlowName" description="namespaced flow API name"/>
<design:attribute name="FlowName" description="namespaced flow API name" default="refrec__Send_Referral_Flow"/>
</design:component>
8 changes: 4 additions & 4 deletions force-app/main/default/classes/ServicePrint.cls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public class ServicePrint {
public with sharing class ServicePrint {


@AuraEnabled
Expand Down Expand Up @@ -77,7 +77,7 @@ public class ServicePrint {
}

public ServicePrint() {
String servId = ApexPages.currentPage().getParameters().get('servId');
String servId = [SELECT Id FROM Service__c WHERE id =:ApexPages.currentPage().getParameters().get('servId')].Id;
System.debug('serviceId' + servId);
List<Open_Hours__c> allHours = getOpenHours(servId);
}
Expand Down Expand Up @@ -130,7 +130,7 @@ public class ServicePrint {
Blob body = Blob.valueOf('');

try {
PageReference nr = new PageReference('/apex/ServicePrintPage?servId=' + serviceId);
PageReference nr = new PageReference('/apex/refrec__ServicePrintPage?servId=' + serviceId);
//nr.getParameters().put('service', service);
body = nr.getContentAsPDF();

Expand All @@ -154,4 +154,4 @@ public class ServicePrint {
return fullURL;

}
}
}
2 changes: 1 addition & 1 deletion force-app/main/default/classes/Test_getRecommendations.cls
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,4 @@ public with sharing class Test_getRecommendations {
}
return false;
}
}
}

0 comments on commit c83bdea

Please sign in to comment.