CRM-12997. Set id on all line items, not just the first.