From 23a5e006a40f65dc0f83abaccff26b83979ed624 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Fri, 8 Jul 2022 14:41:24 +0100 Subject: [PATCH] Allow tag name to be used as a select search filter --- CRM/Core/DAO/Tag.php | 10 +++++++++- xml/schema/Core/Tag.xml | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CRM/Core/DAO/Tag.php b/CRM/Core/DAO/Tag.php index 123795f5a939..3462f01e8d09 100644 --- a/CRM/Core/DAO/Tag.php +++ b/CRM/Core/DAO/Tag.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Tag.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:68e222188dd1d031d2219aa1617e15af) + * (GenCodeChecksum:7df7df526a80cd1d16928d8c6b2cd8e6) */ /** @@ -209,6 +209,14 @@ public static function &fields() { 'entity' => 'Tag', 'bao' => 'CRM_Core_BAO_Tag', 'localizable' => 0, + 'html' => [ + 'type' => 'Select', + ], + 'pseudoconstant' => [ + 'table' => 'civicrm_tag', + 'keyColumn' => 'id', + 'labelColumn' => 'name', + ], 'add' => '1.1', ], 'description' => [ diff --git a/xml/schema/Core/Tag.xml b/xml/schema/Core/Tag.xml index 3d875d5346ed..9550bffa0f6e 100644 --- a/xml/schema/Core/Tag.xml +++ b/xml/schema/Core/Tag.xml @@ -31,6 +31,14 @@ true 64 Name of Tag. + + civicrm_tag
+ id + name +
+ + Select + 1.1