CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency [FIXED]
Pages: [1]

Author Topic: 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency [FIXED]  (Read 828 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency [FIXED]
July 10, 2014, 04:42:58 am
After upgrading to 4.5.beta1 I get a number of messages referring to http://wiki.civicrm.org/confluence/display/CRMDOC/checkCaseTypeNameConsistency

The sample XML file names don't conform to the new pattern.

Code: [Select]
$ head CRM/Case/xml/configuration.sample/AdultDayCareReferral.xml
<?xml version="1.0" encoding="iso-8859-1" ?>

<CaseType>
  <name>Adult Day Care Referral</name>
  <ActivityTypes>
    <ActivityType>
      <name>Open Case</name>
      <max_instances>1</max_instances>
    </ActivityType>
    <ActivityType>

$ head CRM/Case/xml/configuration.sample/HousingSupport.xml
<?xml version="1.0" encoding="iso-8859-1" ?>

<CaseType>
  <name>Housing Support</name>
  <ActivityTypes>
    <ActivityType>
      <name>Open Case</name>
      <max_instances>1</max_instances>
    </ActivityType>
    <ActivityType>

The file names need to be changed to "Adult Day Care Referral.xml" and "Housing Support.xml".
« Last Edit: August 02, 2014, 04:37:14 am by ken »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency
July 10, 2014, 05:36:15 am
According to the wiki link, file name should be AdultDayCareReferral.xml and HousingSupport.xml, so it looks correct to me.

Kurund
« Last Edit: July 10, 2014, 06:14:45 am by Kurund Jalmi »
Found this reply helpful? Support CiviCRM

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency
July 10, 2014, 04:49:35 pm
A new 4.4 installation would use the DB name  "housing_support" and the filename "HousingSupport.xml" (mismatched):

https://github.com/civicrm/civicrm-core/blob/4.4/sql/case_sample.mysql

A new 4.5 installation would use the DB name "HousingSupport" and the filename "HousingSupport.xml" (matched):

https://github.com/civicrm/civicrm-core/blob/master/xml/templates/case_sample.tpl (?)

As a local-only work-around, you could go to "Administer => CiviCase => Case Types => Housing Support", unlock the name, and change it from "housing_support" to "HousingSupport".

Either of these solutions would fix the problem in core:

a) In the 4.4=>4.5 upgrade, change the DB name from "housing_support" to "HousingSupport". (Note: We should not generally rename case-types during upgrade because names can be significant! But this particular case-type is bundled with core, so arguably core "owns" it.)
b) In 4.5 installations, use DB name "housing_support" and filename "housing_support.xml".

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency
July 12, 2014, 01:34:18 am
Hi @totten,

My earlier post referred to spaces in file names rather than underscores. Sorry if that threw people off the scent.

If the most-up-to-date standard is db-name and file name being the same, isn't the best solution to rename HousingSupport.xml to be housing_support.xml in the 4.5 upgrade?

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency
July 13, 2014, 02:59:01 am
BTW, renaming HousingSupport.xml to be housing_support.xml in 4.5.beta1 causes that warning to go away.

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency
July 13, 2014, 08:46:23 pm
I agree that the better solution is to renaming HousingSupport.xml to housing_support.xml -- so that the machine-name stays the same.

https://github.com/civicrm/civicrm-core/pull/3653

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency
July 29, 2014, 08:08:22 pm
@Totten,

CRM/Case/xml/configuration.sample/AdultDayCareReferral.xml should be renamed to adult_day_care_referral.xml

Ken

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency
July 29, 2014, 08:21:51 pm
See issue https://issues.civicrm.org/jira/browse/CRM-15057

and PR https://github.com/civicrm/civicrm-core/pull/3757

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • 4.5.beta1 - Sample case type fails checkCaseTypeNameConsistency [FIXED]

This forum was archived on 2017-11-26.