Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-18482 import - don't fill acl_contact_cache immediately before em… #8266

Merged
merged 1 commit into from
Sep 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions CRM/Contact/Import/Form/Preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,8 @@ public function postProcess() {
// run the import
$importJob->runImport($this);

// update cache after we done with runImport
if (!CRM_Core_Permission::check('view all contacts')) {
CRM_ACL_BAO_Cache::updateEntry($userID);
}

// clear all caches
// Clear all caches, forcing any searches to recheck the ACLs or group membership as the import
// may have changed it.
CRM_Contact_BAO_Contact_Utils::clearContactCaches();

// add all the necessary variables to the form
Expand Down