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

Missing require_once in CRM/Core/BAO/UFGroup.php

    Details

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

      Description

      If you attempt to use the API to lookup profile fields during cron.php (rare case, I know) this file will not have been previously included

      Currently reads:

      if ( ! $skipPermission )

      { $permissionClause = CRM_Core_Permission::ufGroupClause( CRM_Core_Permission::VIEW, 'g.' ); $query .= " AND $permissionClause "; }

      Should read:

      if ( ! $skipPermission )

      { require_once('CRM/Core/Permission.php'); $permissionClause = CRM_Core_Permission::ufGroupClause( CRM_Core_Permission::VIEW, 'g.' ); $query .= " AND $permissionClause "; }

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              dalin dave hansen-lange
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: