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 »
  • [Drupal 7] Beta 7, Beta 9 - CiviCase Edit Fatal Error
Pages: [1]

Author Topic: [Drupal 7] Beta 7, Beta 9 - CiviCase Edit Fatal Error  (Read 422 times)

pantheon

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.26
  • MySQL version: 5.5
  • PHP version: 5.3
[Drupal 7] Beta 7, Beta 9 - CiviCase Edit Fatal Error
September 10, 2014, 04:07:14 am
Getting fatal error when editing an open case to change case type or open date in Beta 7. In Beta 9, Case type change seems to work but still fatal error in Open Date change.

There were other errors in different case activity creations before Beta 7 including Link Case activity which are now resolved. All these fatal errors seems to stem from one change in CRM_Case_Form_Activity class where the property $_caseId has been changed to array instead of integer.

Seems not all classes under CRM/Case/Form/Activity folder were updated to consider the change of type from integer to array. Therefore, need to add the fix provided in CRM_Case_Form_Activity_LinkCases class to all the classes under the folder above:

Code: [Select]
    if (!isset($form->_caseId)) {
      CRM_Core_Error::fatal(ts('Case Id not found.'));
    }
    if (count($form->_caseId) != 1) {
      CRM_Core_Resources::fatal(ts('Expected one case-type'));
    }

    $caseId = CRM_Utils_Array::first($form->_caseId);

Then in code, use the
Code: [Select]
$caseId variable instead of
Code: [Select]
$form->_caseId in classes or places where we are expecting single case ID.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: [Drupal 7] Beta 7, Beta 9 - CiviCase Edit Fatal Error
September 10, 2014, 10:58:43 pm
pantheon

Can you file an issue in our issue tracker JIRA (https://issues.civicrm.org) for the same.

Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: [Drupal 7] Beta 7, Beta 9 - CiviCase Edit Fatal Error
September 10, 2014, 11:12:56 pm
Filed https://issues.civicrm.org/jira/browse/CRM-15273 for your reference.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

pantheon

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.26
  • MySQL version: 5.5
  • PHP version: 5.3
Re: [Drupal 7] Beta 7, Beta 9 - CiviCase Edit Fatal Error
September 11, 2014, 12:35:47 am
Thanks Yashodha for filing the report in JIRA. Will follow the issue and add any input we may have there.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • [Drupal 7] Beta 7, Beta 9 - CiviCase Edit Fatal Error

This forum was archived on 2017-11-26.