From 263a1ad5de82bff14874d2bfe7e04886687bb9f4 Mon Sep 17 00:00:00 2001 From: Aidan Saunders Date: Wed, 6 Dec 2023 18:21:03 +0000 Subject: [PATCH] Munge paths for labelFormats --- CRM/Admin/Page/LabelFormats.php | 6 +++--- CRM/Core/xml/Menu/Admin.xml | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CRM/Admin/Page/LabelFormats.php b/CRM/Admin/Page/LabelFormats.php index ea4dead9d9..630be0ef6b 100644 --- a/CRM/Admin/Page/LabelFormats.php +++ b/CRM/Admin/Page/LabelFormats.php @@ -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'), ], diff --git a/CRM/Core/xml/Menu/Admin.xml b/CRM/Core/xml/Menu/Admin.xml index a7e1b2f345..1c6dd7cddb 100644 --- a/CRM/Core/xml/Menu/Admin.xml +++ b/CRM/Core/xml/Menu/Admin.xml @@ -332,6 +332,11 @@ Communications 60 + + civicrm/admin/labelFormats/edit + Label Page Formats + CRM_Admin_Page_LabelFormats + civicrm/admin/pdfFormats Print Page (PDF) Formats -- 2.25.1