From 0c0f5e8141fc71800a3195eb068359d0dc234f1b Mon Sep 17 00:00:00 2001 From: colemanw Date: Wed, 21 Jun 2023 15:13:55 -0700 Subject: [PATCH] CiviImport - Fix table description --- ext/civiimport/civiimport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/civiimport/civiimport.php b/ext/civiimport/civiimport.php index b12f5a296c..3dc5b2d900 100644 --- a/ext/civiimport/civiimport.php +++ b/ext/civiimport/civiimport.php @@ -109,7 +109,7 @@ function _civiimport_civicrm_get_import_tables(): array { if (!CRM_Utils_Rule::alphanumeric($tableName) || !CRM_Core_DAO::singleValueQuery('SHOW TABLES LIKE %1', [1 => [$tableName, 'String']])) { continue; } - $createdBy = $tables->display_name ? '' : ' (' . E::ts('Created by %1', [$tables->display_name, 'String']) . ')'; + $createdBy = !$tables->display_name ? '' : ' (' . E::ts('created by %1', [1 => $tables->display_name]) . ')'; $importEntities[$tables->id] = [ 'table_name' => $tableName, 'created_by' => $tables->display_name, @@ -118,7 +118,7 @@ function _civiimport_civicrm_get_import_tables(): array { 'user_job_id' => (int) $tables->id, 'created_date' => $tables->created_date, 'expires_date' => $tables->expires_date, - 'title' => ts('Import Job') . (int) $tables->id, + 'title' => ts('Import Job') . $tables->id, 'description' => $tables->created_date . $createdBy, ]; } -- 2.25.1