Merge pull request #21135 from seamuslee001/dev_core_1618
[civicrm-core.git] / xml / schema / Campaign / Survey.xml
index ad2a45c0beab97556cc6f62624af578e9d45b301..e57a3b1f4def2e7683be1cfe42d67502932790dc 100644 (file)
 
   <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>
-      <label>Survey Campaign</label>
+      <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 Contact ID</title>
+    <title>Created By Contact ID</title>
     <type>int unsigned</type>
     <comment>FK to civicrm_contact, who created this Survey.</comment>
     <html>
-      <label>Survey Created By</label>
+      <label>Created By</label>
     </html>
     <add>3.3</add>
   </field>
 
   <field>
     <name>last_modified_id</name>
-    <title>Survey Modified By Contact ID</title>
+    <title>Modified By Contact ID</title>
     <type>int unsigned</type>
     <comment>FK to civicrm_contact, who recently edited this Survey.</comment>
     <html>
-      <label>Survey Modified By</label>
+      <label>Modified By</label>
     </html>
     <add>3.3</add>
   </field>