Merge pull request #15184 from eileenmcnaughton/dedupe9
[civicrm-core.git] / xml / schema / Contact / ContactType.xml
index 6088cec3fe931c285cd0c90bb2f08b5f334a3bf4..8a701d53e032fc1af454ec918318895b7f237c76 100644 (file)
@@ -8,6 +8,7 @@
   <add>3.1</add>
   <field>
     <name>id</name>
+    <title>Contact Type ID</title>
     <type>int unsigned</type>
     <required>true</required>
     <comment>Contact Type ID</comment>
@@ -32,6 +33,7 @@
   </index>
   <field>
     <name>label</name>
+    <title>Contact Type Label</title>
     <type>varchar</type>
     <length>64</length>
     <comment>localized Name of Contact Type.</comment>
@@ -40,6 +42,7 @@
   </field>
   <field>
     <name>description</name>
+    <title>Contact Type Description</title>
     <type>text</type>
     <html>
       <type>TextArea</type>
@@ -52,6 +55,7 @@
   </field>
   <field>
     <name>image_URL</name>
+    <title>Contact Type Image URL</title>
     <type>varchar</type>
     <length>255</length>
     <comment>URL of image if any.</comment>
   </field>
   <field>
     <name>parent_id</name>
+    <title>Contact Type Parent</title>
     <type>int unsigned</type>
     <comment>Optional FK to parent contact type.</comment>
+    <pseudoconstant>
+      <table>civicrm_contact_type</table>
+      <keyColumn>id</keyColumn>
+      <labelColumn>label</labelColumn>
+      <condition>parent_id IS NULL</condition>
+    </pseudoconstant>
     <add>3.1</add>
   </field>
   <foreignKey>
   </foreignKey>
   <field>
     <name>is_active</name>
+    <title>Contact Type Is Active?</title>
     <type>boolean</type>
     <comment>Is this entry active?</comment>
     <add>3.1</add>
   </field>
   <field>
     <name>is_reserved</name>
+    <title>Contact Type is Reserved?</title>
     <type>boolean</type>
     <comment>Is this contact type a predefined system type</comment>
     <add>3.1</add>