Fixed some ref_type and ref_dest issues.
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 13 Feb 2017 22:11:25 +0000 (17:11 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 13 Feb 2017 22:11:25 +0000 (17:11 -0500)
classes/data/dataAddedInfoData.php
classes/data/dataAddedInfoFields.php
config/plugin.ini

index 3829252..862abff 100644 (file)
@@ -115,7 +115,7 @@ class GlmDataRegistrationsAddedInfoData extends GlmDataAbstract
                 'view_only' => true,
                 'use'       => 'a'
             ),
-             
+
             // Pointer to added_info_field Table
             'added_info_field' => array (
                 'field'     => 'added_info_field',
@@ -135,15 +135,12 @@ class GlmDataRegistrationsAddedInfoData extends GlmDataAbstract
                 'required'  => true,
                 'use'       => 'a'
             ),
-             
-            // Pointer to specific entryt of the correct type (user submitted data record)
+
+            // Pointer to specific entry of the correct type (user submitted data record)
             'ref_dest' => array (
                 'field'     => 'ref_dest',
-                'type'      => 'pointer',
-                    'p_table'   => GLM_MEMBERS_PLUGIN_DB_PREFIX . 'members',
-                    'p_field'   => 'name',
-                    'p_orderby' => 'name',
-                    'p_blank'   => true,
+                'type'      => 'int',
+                'required'  => true,
                 'use' => 'a'
             ),
 
index 21db293..39e2b63 100644 (file)
@@ -107,7 +107,7 @@ class GlmDataRegistrationsAddedInfoFields extends GlmDataAbstract
          */
 
         $this->fields = array (
-            
+
             // ID
             'id' => array (
                 'field'     => 'id',
@@ -115,7 +115,7 @@ class GlmDataRegistrationsAddedInfoFields extends GlmDataAbstract
                 'view_only' => true,
                 'use'       => 'a'
             ),
-            
+
             // Ref Type
             'ref_type' => array (
                 'field'     => 'ref_type',
@@ -128,11 +128,8 @@ class GlmDataRegistrationsAddedInfoFields extends GlmDataAbstract
             // Pointer to specific entryt of the correct type (user submitted data record)
             'ref_dest' => array (
                 'field'     => 'ref_dest',
-                'type'      => 'pointer',
-                    'p_table'   => GLM_MEMBERS_PLUGIN_DB_PREFIX . 'members',
-                    'p_field'   => 'name',
-                    'p_orderby' => 'name',
-                    'p_blank'   => true,
+                'type'      => 'int',
+                'required'  => true,
                 'use' => 'a'
             ),
 
index 300c8b9..bf7abf6 100644 (file)
@@ -23,27 +23,12 @@ show_rate_type_numb['From']                     = 20
 data_ref_type[10]                               = 'Registration Request'
 data_ref_type[20]                               = 'Event Registration'
 data_ref_type[30]                               = 'Rate Class Selected'
-data_ref_type[40]                               = 'Submission Account'
-data_ref_type[50]                               = 'Registrant'
+data_ref_type[40]                               = 'Account'
 
 data_ref_type_numb['Registration Request']      = 10
 data_ref_type_numb['Event Registration']        = 20
 data_ref_type_numb['Rate Class Selected']       = 30
-data_ref_type_numb['Submission Account']        = 40
-data_ref_type_numb['Registrant']                = 50
-
-;
-; Payment Reference Types - List only
-;
-data_ref_type[20]                               = 'All'
-data_ref_type[30]                               = 'Event'
-data_ref_type[40]                               = 'Event Rate'
-data_ref_type[50]                               = 'Event Date/Time'
-
-data_ref_type_numb['All']                       = 20
-data_ref_type_numb['Event']                     = 30
-data_ref_type_numb['Event Rate']                = 40
-data_ref_type_numb['Event Date/Time']           = 50
+data_ref_type_numb['Account']                   = 40
 
 ;
 ; Registration Account Options - Use as Bitmap only