SearchKit - Allow searches of OptionGroups and OptionValues
authorColeman Watts <coleman@civicrm.org>
Mon, 15 Nov 2021 14:47:08 +0000 (09:47 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 29 Nov 2021 01:13:55 +0000 (20:13 -0500)
Marks the entities searchable, and adds view/edit links for OptionValues

CRM/Core/DAO/OptionValue.php
Civi/Api4/OptionGroup.php
Civi/Api4/OptionValue.php
xml/schema/Core/OptionValue.xml

index 32e90f667e2b0bcd8a9026d628f17a2bc93fdb96..f1a2b411644fe0c63611a60ea9b39bcab40121e8 100644 (file)
@@ -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
    *
index fa4f11c66f60f00dded2c829ebe5a15b9bc6c1f1..1957b840f8c88f2a1e74e23f8197f6bebcd92af6 100644 (file)
@@ -14,7 +14,7 @@ namespace Civi\Api4;
  * OptionGroup entity.
  *
  * @see \Civi\Api4\OptionValue
- * @searchable none
+ * @searchable secondary
  * @since 5.19
  * @package Civi\Api4
  */
index 8c42cbf04662974fe3e0eaa19a99293fe025082b..0b62c189b5e93c50765dd6a847949c68a46fb1ac 100644 (file)
@@ -14,7 +14,7 @@ namespace Civi\Api4;
  * OptionValue entity.
  *
  * @see \Civi\Api4\OptionGroup
- * @searchable none
+ * @searchable secondary
  * @since 5.19
  * @package Civi\Api4
  */
index 275a40361663edbdbfb0791786b7b97a68dfa5a9..6498b64275b4a5288b0a470076e7bd3fd1ce3465 100644 (file)
@@ -6,6 +6,10 @@
   <name>civicrm_option_value</name>
   <add>1.5</add>
   <log>true</log>
+  <paths>
+    <update>civicrm/admin/options/[option_group_id:name]?reset=1&amp;action=update&amp;id=[id]</update>
+    <delete>civicrm/admin/options/[option_group_id:name]?reset=1&amp;action=delete&amp;id=[id]</delete>
+  </paths>
   <field>
     <name>id</name>
     <title>Option Value ID</title>