diff --git a/CRM/Core/BAO/Note.php b/CRM/Core/BAO/Note.php
index ef7dff8..da06824 100644
--- a/CRM/Core/BAO/Note.php
+++ b/CRM/Core/BAO/Note.php
@@ -574,4 +574,19 @@ WHERE participant.contact_id = %1 AND note.entity_table = 'civicr
m_participant'
}
}
+ /**
+ * Whitelist of possible values for the entity_table field
+ * @return array
+ */
+ public static function entityTables() {
+ $tables = array(
+ 'civicrm_relationship',
+ 'civicrm_contact',
+ 'civicrm_participant',
+ 'civicrm_contribution',
+ );
+ // Identical keys & values
+ return array_combine($tables, $tables);
+ }
+
}
diff --git a/xml/schema/Core/Note.xml b/xml/schema/Core/Note.xml
index 128da77..b6e60df 100644
--- a/xml/schema/Core/Note.xml
+++ b/xml/schema/Core/Note.xml
@@ -26,6 +26,9 @@
64
true
Name of table where item being referenced is stored.
+
+ CRM_Core_BAO_Note::entityTables
+
1.1
diff --git a/xml/schema/Core/EntityTag.xml b/xml/schema/Core/EntityTag.xml
index 0539e4e..1f3543d 100644
--- a/xml/schema/Core/EntityTag.xml
+++ b/xml/schema/Core/EntityTag.xml
@@ -40,6 +40,9 @@
Entity Table
64
physical tablename for entity being joined to file, e.g. civicrm_contact
+
+ tag_used_for
+
3.2