CRM-14798 - CRM_Case_XMLRepository - Don't double-munge the case-type name.
authortotten@civicrm.org <Tim Otten>
Fri, 27 Jun 2014 09:36:14 +0000 (02:36 -0700)
committertotten@civicrm.org <Tim Otten>
Tue, 1 Jul 2014 22:11:02 +0000 (15:11 -0700)
commit076f81b69d1a39b01f7ce42049b51001e6157c3c
treed80e00ae4a7edb1c57c80499adb4ce226ca22278
parent5fc324f958047ff889ed01fa87ece10f3f0a2d44
CRM-14798 - CRM_Case_XMLRepository - Don't double-munge the case-type name.

Prior to this commit, the naming for a case-type flowed more or less
like:

1. User makes up a display-name (title/label)
2. That title is munged via CRM_Utils_String::titleToVar to produce a machine-name
3. That machine-name is munged via CRM_Case_XMLProcessor::mungeCaseType to produce a file-name

As we begin allowing more varied dataflows for managing CaseType XML files
and CaseType DB records, it becomes more important for the naming behavior
to intuitive.
CRM/Case/BAO/CaseType.php
CRM/Case/XMLProcessor.php
CRM/Case/XMLRepository.php
tests/phpunit/api/v3/CaseTypeTest.php