Merge pull request #2546 from brylie/master
[civicrm-core.git] / xml / schema / Core / OptionValue.xml
index 2dd7d8a3442046a1706ab17b69b3d02758b3b5a2..217b5632f07683fd534412ac0d2d31f76b911e3b 100644 (file)
       <required>true</required>
       <comment>Group which this option belongs to.</comment>
        <add>1.5</add>
+      <pseudoconstant>
+        <table>civicrm_option_group</table>
+        <keyColumn>id</keyColumn>
+        <labelColumn>name</labelColumn>
+      </pseudoconstant>
+      <html>
+        <type>Select</type>
+      </html>
   </field>
   <foreignKey>
        <name>option_group_id</name>
   <field>
        <name>description</name>
        <type>text</type>
-       <htmlType>textarea</htmlType>
-       <rows>8</rows>
-       <cols>60</cols>
+       <html>
+         <type>TextArea</type>
+         <rows>8</rows>
+         <cols>60</cols>
+       </html>
        <localizable>true</localizable>
        <comment>Optional description.</comment>
        <add>1.5</add>
       <name>component_id</name>
       <type>int unsigned</type>
       <comment>Component that this option value belongs/caters to.</comment>
-       <add>2.0</add>
+      <add>2.0</add>
+      <pseudoconstant>
+        <table>civicrm_component</table>
+        <keyColumn>id</keyColumn>
+        <labelColumn>name</labelColumn>
+      </pseudoconstant>
+      <html>
+        <type>Select</type>
+      </html>
   </field>
   <foreignKey>
        <name>component_id</name>