Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8549

New Case with AllowMultipleCaseClients enabled throw form rule error (please select a valid contact) OR notice (undefined constant)

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.4, 4.0.4
    • Fix Version/s: 3.4.5, 4.0.5
    • Component/s: None
    • Labels:
      None

      Description

      There are missing single quotes in variable in CRM/Case/Form/Activity/OpenCase.php. In CiviCRM 4 / Drupal 7, the stricter error checking either throws an warning or triggers the formRule incorrectly. Fix is to add missing single quotes on line 228:

      replace this:
      if ( isset( $fields[contact][1] ) && !$fields[contact][1] ) {
      with this:
      if ( isset( $fields['contact'][1] ) && !$fields['contact'][1] ) {

      http://forum.civicrm.org/index.php/topic,20175.0/topicseen.html

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: