You need to sign in to do that
Don't have an account?
vanessen
Second_Order_SOQL_SOSL_Injection
When trying to pass security review, I am getting this error, and there is no place where thsi is explained, but the error occur at the folllowing line :
for(Product_Resource_Category__c prc : [select Resource_Category__c,Resource_Category__r.Name,DT__c,OT__c,RT__c,TT__c,Quantity__c,Main_Resource__c
from Product_Resource_Category__c
where Product__c =:itemMap.get(ticketLine.Item__c).Product__c])
{
......
}
for(Product_Resource_Category__c prc : [select Resource_Category__c,Resource_Category__r.Name,DT__c,OT__c,RT__c,TT__c,Quantity__c,Main_Resource__c
from Product_Resource_Category__c
where Product__c =:itemMap.get(ticketLine.Item__c).Product__c])
{
......
}
itemMap.get(ticketLine.Item__c).Product__c
is it a map with the second piece being an sobject? You can't do that in a query, you'll have to put the possible values into a set then query looking for that.