CRM-12997. Set id on all line items, not just the first.
Merge pull request #1091 from GiantRobot/4.3-CRM-12997

CRM-12997. Set id on all line items, not just the first.
Recreated bug, downloaded patch, retested. Looks good.