Munge paths for labelFormats
authorAidan Saunders <aidan.saunders@squiffle.uk>
Wed, 6 Dec 2023 18:21:03 +0000 (18:21 +0000)
committerAidan Saunders <aidan.saunders@squiffle.uk>
Wed, 6 Dec 2023 18:21:03 +0000 (18:21 +0000)
CRM/Admin/Page/LabelFormats.php
CRM/Core/xml/Menu/Admin.xml

index ea4dead9d9c7caa3dd2bf92b0a2f680ce1eacae1..630be0ef6b57a7de1285ec4188ebd4a0d856ede2 100644 (file)
@@ -51,19 +51,19 @@ class CRM_Admin_Page_LabelFormats extends CRM_Core_Page_Basic {
       self::$_links = [
         CRM_Core_Action::UPDATE => [
           'name' => ts('Edit'),
-          'url' => 'civicrm/admin/labelFormats',
+          'url' => 'civicrm/admin/labelFormats/edit',
           'qs' => 'action=update&id=%%id%%&group=%%group%%&reset=1',
           'title' => ts('Edit Label Format'),
         ],
         CRM_Core_Action::COPY => [
           'name' => ts('Copy'),
-          'url' => 'civicrm/admin/labelFormats',
+          'url' => 'civicrm/admin/labelFormats/edit',
           'qs' => 'action=copy&id=%%id%%&group=%%group%%&reset=1',
           'title' => ts('Copy Label Format'),
         ],
         CRM_Core_Action::DELETE => [
           'name' => ts('Delete'),
-          'url' => 'civicrm/admin/labelFormats',
+          'url' => 'civicrm/admin/labelFormats/edit',
           'qs' => 'action=delete&id=%%id%%&group=%%group%%&reset=1',
           'title' => ts('Delete Label Format'),
         ],
index a7e1b2f34518411b5a64ea3a92fcae764f756cec..1c6dd7cddb577938ca20355873ad002a31d0dfd5 100644 (file)
      <adminGroup>Communications</adminGroup>
      <weight>60</weight>
   </item>
+  <item>
+     <path>civicrm/admin/labelFormats/edit</path>
+     <title>Label Page Formats</title>
+     <page_callback>CRM_Admin_Page_LabelFormats</page_callback>
+  </item>
   <item>
      <path>civicrm/admin/pdfFormats</path>
      <title>Print Page (PDF) Formats</title>