- Issue created by @jonhalle
- 🇺🇸United States markusa
It must be that the case is first saved without an assignee, or if assignee is assigned in a hook_civicrm_pre() implementation it is happening after CiviCRM's hook implementation is running.
CiviCRM validates based on what the api action.validate gives it.
It maybe possible to goto: /admin/structure/civicrm-entity/settings
"Advanced Settings"
Check "Disable pre/post hooks"See if it works without error.
Let me know if that allows it to work.
- 🇬🇧United Kingdom jonhalle
Thank you @markusa. Yes that does allow it to work - though clearly it's a diagnostic step not a workaround. Does that give any more clues? Happy to do some more poking but I am not really clear on what structures in Drupal this hook is seeking to update.
One additional thing I have noticed is that the error does not stop the case being created, albeit with only the activities up to the one with the pre-assigned user being created.
- 🇺🇸United States acacciola
I'm seeing this continuing to persist exactly as described. Are there any updates or paths forward?
- 🇵🇭Philippines dsdeiz
Would there happen to be a way to reproduce this?
There is an issue with creating cases where one or more of the timeline activities has users pre-assigned (ie assigned by default in the Case Type).
I tried adding a configuration similar to this although I am unable to reproduce this - https://monosnap.com/direct/yjflNRZtIEqndOWuaPWot8mpeTJ14p.
As a side note, there are fixes for CE 4.0.x. Might be worth a try to see if it still happens on CE 4.0.x