Fix #1029 When creating an AR for a Case, CPID on the AR should default to that of the Case