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

creating a new Note causes foreign key error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Labels:
      None

      Description

      CRM_Core_BAO_Note::create() has a hard-coded value for the contact_id (ie the contact writing the note) of 1. If contact ID 1 doesn't exist, SQL eats flaming death with a foreign key error.

      It should probably determine the correct contact id by figuring out the administrator's contact.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              brian Brian McFee
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: