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

Note API is failing on BAO when creating contribution note

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.4
    • Fix Version/s: 3.4.5
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      When I try to create a note against a contribution it's 'bouncing' on this line :: CRM_Core_Error::statusBounce(ts('We could not find your logged in user ID'));

      if ( ! $params['contact_id'] ) {
      if ( $params['entity_table'] =='civicrm_contact' )

      { $note->contact_id = $params['entity_id']; }

      else

      { CRM_Core_Error::statusBounce(ts('We could not find your logged in user ID')); }

      }

      But the function doesn't actually make use of contact_id EXCEPT when entity_table == 'civicrm_contact' so I don't see any reason for the ELSE fail.

        Attachments

          Activity

            People

            • Assignee:
              rohan Rohan S. Chavan
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified