On a particular Civi 4.6.4 / Drupal 7 installation, recently upgraded from 4.4, there are some misbehaving case types. They appear to have been created through the CiviCase UI since the 4.6 upgrade, as there are no corresponding xml files in CRM/Case/xml/configuration/
under the custom template directory. These case types have no activity types and no timeline specified. The xml in the definition
field of the civicrm_case table is just this:
<?xml version="1.0" encoding="utf-8" ?>
<CaseType>
<name>engagement</name>
</CaseType>
When I try to edit one of these broken case types through the UI, e.g. adding activity types or adding a standard timeline containing Open Case, it does not save. No error is reported on screen, in CiviCRM.blah.log, Drupal watchdog, Firebug console or the web server error log.
The following civicrm/ajax/rest call is shown in Firebug on saving:
action: create
entity: CaseType
json: {"id":"4","name":"engagement","title":"Engagement","is_active":"1","is_reserved":"0","weight":"2","definition":[],"is_forkable":"1","is_forked":""}
Note "definition":[]
. This I assume should hold details of the activity types & timeline I have just attempted to add. The response is as expected, given the data that was provided:
{"is_error":0,"version":3,"count":1,"id":4,"values":{"4":{"id":"4","name":"engagement","title":"Engagement","description":"","is_active":"1","is_reserved":"0","weight":"2","definition":[],"is_forkable":"1","is_forked":""}}}
However I was able to create a new case type OK.
Any advice on debugging this would be much appreciated.