From 53f223989a7f04ad45d0f37f04cb32ef907cf378 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 15 Nov 2021 10:23:13 -0500 Subject: [PATCH] SearchKit - Add view/edit links for option values --- CRM/Core/DAO/OptionValue.php | 12 +++++++++++- xml/schema/Core/OptionValue.xml | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CRM/Core/DAO/OptionValue.php b/CRM/Core/DAO/OptionValue.php index 32e90f667e2b..f1a2b411644f 100644 --- a/CRM/Core/DAO/OptionValue.php +++ b/CRM/Core/DAO/OptionValue.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/OptionValue.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:171565168517add49222893871a84e43) + * (GenCodeChecksum:598cce8df447dc19cd4c846549be1141) */ /** @@ -30,6 +30,16 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO { */ public static $_log = TRUE; + /** + * Paths for accessing this entity in the UI. + * + * @var string[] + */ + protected static $_paths = [ + 'update' => 'civicrm/admin/options/[option_group_id:name]?reset=1&action=update&id=[id]', + 'delete' => 'civicrm/admin/options/[option_group_id:name]?reset=1&action=delete&id=[id]', + ]; + /** * Option ID * diff --git a/xml/schema/Core/OptionValue.xml b/xml/schema/Core/OptionValue.xml index 275a40361663..6498b64275b4 100644 --- a/xml/schema/Core/OptionValue.xml +++ b/xml/schema/Core/OptionValue.xml @@ -6,6 +6,10 @@ civicrm_option_value 1.5 true + + civicrm/admin/options/[option_group_id:name]?reset=1&action=update&id=[id] + civicrm/admin/options/[option_group_id:name]?reset=1&action=delete&id=[id] + id Option Value ID