From 2ef3d3b2a5e4b75c079f661f567882dc510e3506 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 10 Jun 2021 18:11:27 +1200 Subject: [PATCH] Add pseudoconstant to acl_entity_role Not sure this will help with dev/core#2615 but spotted it while trying to see if I can replicate (still doing that) --- CRM/ACL/DAO/ACLEntityRole.php | 6 +++++- xml/schema/ACL/ACLEntityRole.xml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CRM/ACL/DAO/ACLEntityRole.php b/CRM/ACL/DAO/ACLEntityRole.php index 0c8b374a0f..57a8a5d0e4 100644 --- a/CRM/ACL/DAO/ACLEntityRole.php +++ b/CRM/ACL/DAO/ACLEntityRole.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/ACL/ACLEntityRole.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b90187559ecba3c3d038c00a8b818ef4) + * (GenCodeChecksum:db754438e4d852834a61b3d38b6a48dc) */ /** @@ -134,6 +134,10 @@ class CRM_ACL_DAO_ACLEntityRole extends CRM_Core_DAO { 'entity' => 'ACLEntityRole', 'bao' => 'CRM_ACL_BAO_ACLEntityRole', 'localizable' => 0, + 'pseudoconstant' => [ + 'optionGroupName' => 'acl_role', + 'optionEditPath' => 'civicrm/admin/options/acl_role', + ], 'add' => '1.6', ], 'entity_table' => [ diff --git a/xml/schema/ACL/ACLEntityRole.xml b/xml/schema/ACL/ACLEntityRole.xml index 836ab90561..f2648d445d 100644 --- a/xml/schema/ACL/ACLEntityRole.xml +++ b/xml/schema/ACL/ACLEntityRole.xml @@ -26,6 +26,9 @@ ACL Role ID int unsigned true + + acl_role + Foreign Key to ACL Role (which is an option value pair and hence an implicit FK) 1.6 -- 2.25.1