From 59cac3b931864c505b9c585eee01fbabb6ef35c5 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Mon, 13 Feb 2017 17:11:25 -0500 Subject: [PATCH] Fixed some ref_type and ref_dest issues. --- classes/data/dataAddedInfoData.php | 13 +++++-------- classes/data/dataAddedInfoFields.php | 11 ++++------- config/plugin.ini | 19 ++----------------- 3 files changed, 11 insertions(+), 32 deletions(-) diff --git a/classes/data/dataAddedInfoData.php b/classes/data/dataAddedInfoData.php index 3829252..862abff 100644 --- a/classes/data/dataAddedInfoData.php +++ b/classes/data/dataAddedInfoData.php @@ -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' ), diff --git a/classes/data/dataAddedInfoFields.php b/classes/data/dataAddedInfoFields.php index 21db293..39e2b63 100644 --- a/classes/data/dataAddedInfoFields.php +++ b/classes/data/dataAddedInfoFields.php @@ -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' ), diff --git a/config/plugin.ini b/config/plugin.ini index 300c8b9..bf7abf6 100644 --- a/config/plugin.ini +++ b/config/plugin.ini @@ -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 -- 2.17.1