Update the custom field form location when adding profile.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 20 Feb 2018 18:57:55 +0000 (13:57 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 20 Feb 2018 18:57:55 +0000 (13:57 -0500)
When adding the profile record need to have the table with custom field
surrounding the form. So it is hidden except for when it is showing.

index.php
readme.txt
views/admin/member/memberInfo.html

index d79ec80..e6e46ef 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 2.10.23
+ * Version: 2.10.24
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersDatabase
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.10.23
+ * @version 2.10.24
  */
 
 $GLOBALS['glmAssociateMemTracker'] = memory_get_usage();
@@ -46,7 +46,7 @@ if (!defined('ABSPATH')) {
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.23');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.24');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.34');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
index f13e66d..ec545fc 100644 (file)
@@ -66,6 +66,10 @@ There is of course much more to this.
 (none)
 
 == Changelog ==
+= 2.10.24 =
+* Fix location of the custom field output in member edit profile form when
+  adding the member info record.
+
 = 2.10.23 =
 * Add New File Upload Manager. This is for sites that have a lot of large PDF
   files or large number of files in general.
index 6701639..06d6091 100644 (file)
       {if $memberInfoID && $memberInfo}
         {$prefix = $slug|cat:'_'}
         {$uid = $prefix|cat:$memberInfoID}
-        
+
         <div id="glm-table-custom-fields" class="glm-hidden glm-admin-table glm-table glm-member-info-table">
             {apply_filters('glm-members-custom-fields-form', '', $slug,$memberInfoID,$customFieldResults)}
             {apply_filters('glm-members-custom-fields-form', '', $uid,$memberInfoID,$customFieldResults)}
         </div>
       {else}
-        {apply_filters('glm-members-custom-fields-form', '', $slug,'','')}
+        <div id="glm-table-custom-fields" class="glm-hidden glm-admin-table glm-table glm-member-info-table">
+            {apply_filters('glm-members-custom-fields-form', '', $slug,'','')}
+        </div>
       {/if}
 
         <p><span class="glm-required">*</span> Required</p>