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

Copying an event results in "You do not have permission to access this page" with memcache enabled

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.7
    • Fix Version/s: 4.1.0
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      Very similar to this issue: http://issues.civicrm.org/jira/browse/CRM-6734 which was addressed and works well.

      I fixed it by doing they same thing for the copy function which was done in the add function.

      Index: CRM/Event/BAO/Event.php
      ===================================================================
      — CRM/Event/BAO/Event.php (revision 38710)
      +++ CRM/Event/BAO/Event.php (working copy)
      @@ -888,6 +888,9 @@
      */
      static function copy( $id )
      {
      + require_once 'CRM/Utils/System.php';
      + CRM_Utils_System::flushCache( );
      +
      $defaults = $eventValues = array( );

      //get the require event values.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              darrick Darrick Servis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: