Details
Description
This bug occurs when you alter the name of an existing case type.
When you alter the case label in the frontend under Administer->CiviCase->Case Types the new label is only written to the label field of the option_value table. It also needs to write to the name field or it creates an error saying that the case type cannot be found.
I have made sure to create an xml file with the new case label but unless I manually go into the database and change the value of the name field, I receive a fatal error.
I am willing to submit a patch if it can be confirmed that the following page is the one used to write the changes to the database, /fa-drupal7/drupal-7.0/civicrm/admin/options/case_type.