Skip to content
Snippets Groups Projects
Commit 37db45bb authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

#3707 Fix wordpress issue of page not refreshing after import

parent 45aade24
Branches
Tags
No related merge requests found
......@@ -81,7 +81,8 @@ class CRM_Custom_Import_Form_DataSource extends CRM_Import_Form_DataSource {
*/
public function buildQuickForm() {
parent::buildQuickForm();
// Perhaps never used, but permits url passing of the group.
$this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE);
$multipleCustomData = CRM_Core_BAO_CustomGroup::getMultipleFieldGroup();
$this->assign('fieldGroups', $multipleCustomData);
$this->add('select', 'multipleCustomData', ts('Multi-value Custom Data'), ['' => ts('- select -')] + $multipleCustomData, TRUE);
......
......@@ -23,13 +23,6 @@ abstract class CRM_Import_Form_DataSource extends CRM_Import_Forms {
* Set variables up before form is built.
*/
public function preProcess() {
$this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE);
$params = "reset=1";
if ($this->_id) {
$params .= "&id={$this->_id}";
}
CRM_Core_Session::singleton()->pushUserContext(CRM_Utils_System::url(static::PATH, $params));
// check for post max size
CRM_Utils_Number::formatUnitSize(ini_get('post_max_size'), TRUE);
$this->assign('importEntity', $this->getTranslatedEntity());
......
......@@ -141,7 +141,7 @@ abstract class CRM_Import_Form_Preview extends CRM_Import_Forms {
'onEndUrl' => CRM_Utils_System::url('civicrm/import/contact/summary', [
'user_job_id' => $this->getUserJobID(),
'reset' => 1,
]),
], FALSE, NULL, FALSE),
]);
$runner->runAllViaWeb();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment