Move civicrm/contribute/manage to civicrm/admin/contribute/manage
authorAidan Saunders <aidan.saunders@squiffle.uk>
Thu, 16 Nov 2023 21:46:41 +0000 (21:46 +0000)
committerAidan Saunders <aidan.saunders@squiffle.uk>
Fri, 17 Nov 2023 14:57:22 +0000 (14:57 +0000)
Update one reference to old path
Change Contribution Page clone and delete to use new path

CRM/Contribute/DAO/ContributionPage.php
CRM/Contribute/xml/Menu/Contribute.xml
ext/civicrm_admin_ui/managed/SavedSearch_Manage_Contribution_Pages.mgd.php
templates/CRM/Contribute/Page/ContributionPage.tpl
xml/schema/Contribute/ContributionPage.xml

index 7ce4c8cc85111db8e714e32602587dd6b576510c..788b6b26f3c4a176c8eeb307e21eb5772cb80251 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionPage.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:84e81e764d43c0d0116ae54d90a18a84)
+ * (GenCodeChecksum:8c1f3262364d5a5f1255e1f0eb4bf690)
  */
 
 /**
@@ -46,7 +46,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
   protected static $_paths = [
     'add' => 'civicrm/admin/contribute/add?reset=1&action=add',
     'update' => 'civicrm/admin/contribute/settings?reset=1&action=update&id=[id]',
-    'delete' => 'civicrm/admin/contribute?reset=1&action=delete&id=[id]',
+    'delete' => 'civicrm/admin/contribute/manage?reset=1&action=delete&id=[id]',
     'browse' => 'civicrm/admin/contribute',
   ];
 
index 77b12723e4f1464dfcbb8ded590993d373b1e41a..1757c746a6269cd5e085a93e9ba6aae02993819f 100644 (file)
     <weight>588</weight>
   </item>
   <item>
-    <path>civicrm/contribute/manage</path>
+    <path>civicrm/admin/contribute/manage</path>
     <title>Manage Contribution Pages</title>
     <page_callback>CRM_Contribute_Page_ContributionPage</page_callback>
     <access_arguments>administer CiviCRM,access CiviContribute</access_arguments>
index d263bece3904db104ba3cb728276c57c6afac250..c2504145a9f7dba1012b42dc2b039c7db566067c 100644 (file)
@@ -200,7 +200,7 @@ return [
                   'condition' => [],
                 ],
                 [
-                  'path' => 'civicrm/admin/contribute?action=copy&gid=[id]',
+                  'path' => 'civicrm/admin/contribute/manage?action=copy&gid=[id]',
                   'icon' => 'fa-clone',
                   'text' => E::ts('Clone'),
                   'style' => 'secondary',
@@ -230,7 +230,7 @@ return [
                 ],
                 [
                   'entity' => 'ContributionPage',
-                  'action' => 'delete',
+                  'action' => '',
                   'join' => '',
                   'target' => 'crm-popup',
                   'icon' => 'fa-trash',
@@ -238,6 +238,7 @@ return [
                   'style' => 'danger',
                   'path' => '',
                   'condition' => [],
+                  'task' => 'delete',
                 ],
               ],
               'type' => 'buttons',
index f3fd1af0368fdf8bf1d730f7a856b2f2a211fd76..1a2b77367c0d472f4ce8e5e19c31e9beec86ecbf 100644 (file)
@@ -88,7 +88,7 @@
   {if $isSearch eq 1}
       <div class="status messages">
                 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
-                {capture assign=browseURL}{crmURL p='civicrm/contribute/manage' q="reset=1"}{/capture}
+                {capture assign=browseURL}{crmURL p='civicrm/admin/contribute/manage' q="reset=1"}{/capture}
                     {ts}No available Contribution Pages match your search criteria. Suggestions:{/ts}
                     <div class="spacer"></div>
                     <ul>
index c0e030b048f203c57e380ca35a4beb1bfd567854..92feacda65fbbebd5373be8af8cfcf1f609f4ea5 100644 (file)
@@ -12,7 +12,7 @@
   <paths>
     <add>civicrm/admin/contribute/add?reset=1&amp;action=add</add>
     <update>civicrm/admin/contribute/settings?reset=1&amp;action=update&amp;id=[id]</update>
-    <delete>civicrm/admin/contribute?reset=1&amp;action=delete&amp;id=[id]</delete>
+    <delete>civicrm/admin/contribute/manage?reset=1&amp;action=delete&amp;id=[id]</delete>
     <browse>civicrm/admin/contribute</browse>
   </paths>
   <field>