From ed62b6c26cac95443c5affe5bad939f31845a9ad Mon Sep 17 00:00:00 2001
From: Eileen McNaughton <emcnaughton@wikimedia.org>
Date: Sat, 11 Jun 2022 14:59:20 +1200
Subject: [PATCH] dev/core#3513 Remove 'done' from sumary/import monitoring
 page

See dev/core#3513 for why it's confusing
---
 CRM/Import/Form/Summary.php                   | 13 -------------
 templates/CRM/Contact/Import/Form/Summary.tpl |  2 --
 2 files changed, 15 deletions(-)

diff --git a/CRM/Import/Form/Summary.php b/CRM/Import/Form/Summary.php
index 352d9f27cf7..efb521a39bf 100644
--- a/CRM/Import/Form/Summary.php
+++ b/CRM/Import/Form/Summary.php
@@ -34,19 +34,6 @@ abstract class CRM_Import_Form_Summary extends CRM_Import_Forms {
     $this->assignOutputURLs();
   }
 
-  /**
-   * Build the form object.
-   */
-  public function buildQuickForm() {
-    $this->addButtons(array(
-        array(
-          'type' => 'next',
-          'name' => ts('Done'),
-          'isDefault' => TRUE,
-        ),
-    ));
-  }
-
   /**
    * Return a descriptive name for the page, used in wizard header.
    *
diff --git a/templates/CRM/Contact/Import/Form/Summary.tpl b/templates/CRM/Contact/Import/Form/Summary.tpl
index 0aa01607fd0..046d353dd14 100644
--- a/templates/CRM/Contact/Import/Form/Summary.tpl
+++ b/templates/CRM/Contact/Import/Form/Summary.tpl
@@ -53,7 +53,6 @@
         </p>
     {/if}
 </div>
-<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
  {* Summary of Import Results (record counts) *}
   <table id="summary-counts" class="report">
     <tr><td class="label crm-grid-cell">{ts}Total Rows{/ts}</td>
@@ -124,5 +123,4 @@
 
  </table>
 
- <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
 </div>
-- 
GitLab