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

Unable to set modified date for a note using API

    Details

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

      Description

      The modified_date parameter is ignored when using civicrm_note_create(). A new note is always set to the current date (line 103 in CRM/Core/BAO/Note.php in add()). This presents a problem when importing from another CRM and the user wants to preserve the original note date.

      Suggest moving the check in lines 78-80 of api/v2/Note.php:
      if ( !isset($params['modified_date']) )

      { $params['modified_date'] = date("Ymd"); }

      to CRM/Core/BAO/Note.php.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              dharmatech Dharmatech
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: