Commenting this line also helps, so it's narrowing down....
Okay, probably the dumbest mistake I've ever made, and never will repeat. I never set the $invdet_focus->id property....
Okay, probably the dumbest mistake I've ever made, and never will repeat. I never set the $invdet_focus->id property....