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

When creating an activity from within the Manage Case Screen a Notice appears.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 3.4.2
    • Component/s: None
    • Labels:
      None

      Description

      The Notice that appears is as follows:
      Notice: Undefined offset: 1 in CRM_Utils_String::stripAlternatives() (line 443 of /vpfa-dev/fa-drupal7/president/sites/all/modules/civicrm/CRM/Utils/String.php).

      I was able to resolve the issue by using isset. The patched function is included as a file beginning on line 442. There are most likely superior ways of handling this and I am keen to see them if so.

      Thanks again for the great product.

      if (isset($matches[1])) {
      if ( trim( strip_tags( $matches[1] ) ) != '' )

      { return $matches[1]; }


      }
      else

      { return $full; }

      }

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              themusician Max Bronsema
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: