Skip to content
Snippets Groups Projects
Commit 89b39e78 authored by jaapjansma's avatar jaapjansma
Browse files

php8 issues

parent 1af65284
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ class CRM_Dataprocessor_Form_Import extends CRM_Core_Form {
}
public function buildQuickForm() {
$this->add('file', 'uploadFile', ts('Import Data File'), 'size=30 maxlength=255', TRUE);
$this->add('file', 'uploadFile', ts('Import Data File'), ['size=30 maxlength=255'], TRUE);
$this->addButtons(array(
array('type' => 'next', 'name' => E::ts('Import'), 'isDefault' => TRUE,),
array('type' => 'cancel', 'name' => E::ts('Cancel'))
......@@ -33,11 +33,11 @@ class CRM_Dataprocessor_Form_Import extends CRM_Core_Form {
if($filetype != 'application/json'){
CRM_Core_Session::setStatus(E::ts('Imported file should be a json file'), '', 'error');
$redirectUrl = CRM_Utils_System::url('civicrm/dataprocessor/form/import', array('reset' => 1, 'action' => 'add'));
parent::preProcess();
CRM_Utils_System::redirect($redirectUrl);
}
else{
......@@ -54,4 +54,4 @@ class CRM_Dataprocessor_Form_Import extends CRM_Core_Form {
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment