Merge pull request #21135 from seamuslee001/dev_core_1618
[civicrm-core.git] / xml / schema / Campaign / Survey.xml
index bfe0cf95c0bbc949ab56376a27a6d1c6a83d6c10..e57a3b1f4def2e7683be1cfe42d67502932790dc 100644 (file)
@@ -14,6 +14,9 @@
     <type>int unsigned</type>
     <required>true</required>
     <comment>Survey id.</comment>
+    <html>
+      <type>Number</type>
+    </html>
     <add>3.3</add>
   </field>
   <primaryKey>
 
   <field>
     <name>campaign_id</name>
-    <title>Survey Campaign ID</title>
+    <title>Campaign ID</title>
     <type>int unsigned</type>
     <default>NULL</default>
     <comment>Foreign key to the Campaign.</comment>
+    <html>
+      <type>EntityRef</type>
+      <label>Campaign</label>
+    </html>
     <add>3.3</add>
+    <pseudoconstant>
+      <table>civicrm_campaign</table>
+      <keyColumn>id</keyColumn>
+      <labelColumn>title</labelColumn>
+      <prefetch>FALSE</prefetch>
+    </pseudoconstant>
   </field>
   <foreignKey>
     <name>campaign_id</name>
 
   <field>
     <name>created_id</name>
-    <title>Survey Created By</title>
+    <title>Created By Contact ID</title>
     <type>int unsigned</type>
     <comment>FK to civicrm_contact, who created this Survey.</comment>
+    <html>
+      <label>Created By</label>
+    </html>
     <add>3.3</add>
   </field>
   <foreignKey>
 
   <field>
     <name>last_modified_id</name>
-    <title>Survey Modified</title>
+    <title>Modified By Contact ID</title>
     <type>int unsigned</type>
     <comment>FK to civicrm_contact, who recently edited this Survey.</comment>
+    <html>
+      <label>Modified By</label>
+    </html>
     <add>3.3</add>
   </field>
   <foreignKey>