Adding expires and end date in works when copying course -refs #6599