SearchKit & Afform - Add option_value_fields info to managed option groups
authorColeman Watts <coleman@civicrm.org>
Mon, 21 Mar 2022 18:18:10 +0000 (14:18 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 31 Mar 2022 17:54:28 +0000 (13:54 -0400)
ext/afform/core/managed/AfformType.mgd.php
ext/search_kit/managed/SearchDisplayType.mgd.php

index 25da5682b7a8af7b867b73c6d6e3afa9ddf82918..2c0e8eb22890608ad72d14fb0a6b984b918683d0 100644 (file)
@@ -5,9 +5,12 @@ $mgd = [
   [
     'name' => 'AfformType',
     'entity' => 'OptionGroup',
+    'update' => 'always',
+    'cleanup' => 'always',
     'params' => [
       'name' => 'afform_type',
       'title' => 'Afform Type',
+      'option_value_fields' => ['name', 'label', 'icon', 'description'],
     ],
   ],
   [
index 694a37e753cd8885457feb6b809c2d14b2d4865a..6feee2ef47c06b285c7a38b98c50e95fd2bddadb 100644 (file)
@@ -5,9 +5,12 @@ return [
   [
     'name' => 'SearchDisplayType',
     'entity' => 'OptionGroup',
+    'update' => 'always',
+    'cleanup' => 'always',
     'params' => [
       'name' => 'search_display_type',
       'title' => 'Search Display Type',
+      'option_value_fields' => ['name', 'label', 'icon', 'description'],
     ],
   ],
   [