I am getting problem in understanding a issue given by security scan.
The problem is :
[]
I am not pasting the whole code but the essential lines:
public with sharing class C62AccountsPayableController {
public VendorInvoiceWrapper cSelVI {get;set;}
public List<VendorInvoiceWrapper> viList{get;set;}
public class VendorInvoiceWrapper{
public List<Vendor_Invoice_Line__c> delete_lines{get;set;}
}
public void saveVI(){
for(VendorInvoiceWrapper vi : viList){
if(Schema.sObjectType.Vendor_Invoice_Line__c.isDeletable()) {delete cSelVI.delete_lines;}
vi.delete_lines.clear();
}
}
Anybody have idea about it why its giving issue in this line.I am thinking its because of list I am passing to delete.But still why it would be an issue to pass a list.