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

Date value missing after upgrade, specially for records which were there in 'activity' table before upgrade.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Make sure dates are migrated to new date column (activity_date_time) for already existing records in activity_table, during activity upgrade process.

      The reason for broken links is the hardcoded $activityTypeId in the file - CRM/Activity/Selector/Activity.php

      "
      elseif ( $activityTypeId == 5 ) { // event registration
      $url = 'civicrm/contact/view/participant';
      $qsView = "action=view&reset=1&id={$sourceRecordId}&cid=%%cid%%&context=%%cxt%%";
      } elseif ( $activityTypeId == 6 ) { //contribution
      $url = 'civicrm/contact/view/contribution';
      $qsView = "action=view&reset=1&id={$sourceRecordId}&cid=%%cid%%&context=%%cxt%%";
      } elseif ( in_array($activityTypeId, array( 7, 8 ) ) ) { // membership
      $url = 'civicrm/contact/view/membership';
      $qsView = "action=view&reset=1&id={$sourceRecordId}&cid=%%cid%%&context=%%cxt%%";
      }
      "

      Check http://forum.civicrm.org/index.php?topic=3277.0 for details.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              deepak Deepak Srivastava
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: