Fixed problem with incorrectly sending array rather than a simple value to to wpdb...
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 28 Aug 2017 20:05:17 +0000 (16:05 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 28 Aug 2017 20:05:17 +0000 (16:05 -0400)
models/admin/registrations/event.php
views/admin/registrations/list.html

index a2c74ed..94e8b49 100644 (file)
@@ -277,7 +277,7 @@ class GlmMembersAdmin_registrations_event extends GlmDataRegistrationsRegEvent
                                     if (!$regEventLastTime || $regEventLastTime['timestamp'] > $last ) {
                                         $regEventLastTime = $last;
                                     }
-                                    
+                                         
                                     // Check all event times for matching reg event times
                                     foreach ($v['times'] as $tk=>$tv) {
                                         
@@ -296,7 +296,7 @@ class GlmMembersAdmin_registrations_event extends GlmDataRegistrationsRegEvent
                                                     'start_datetime'        => $sTime, 
                                                     'end_datetime'          => $eTime,
                                                     'all_day'               => $tv['all_day']['value'],
-                                                    'attendees'             => $regEvent['attendees'],
+                                                    'attendees'             => $regEvent['attendees']['value'],
                                                     'attendee_max'          => $regEvent['attendee_max'],
                                                     'attendee_count'        => 0,
                                                     'attendees_pending'     => 0,
@@ -327,7 +327,7 @@ class GlmMembersAdmin_registrations_event extends GlmDataRegistrationsRegEvent
                                                     '%f',   // total_charges
                                                     '%f',   // total_discounts
                                                     '%f'    // total_payments
-                                                )                                                
+                                                )                                                 
                                             );
                                         }
                                     }
@@ -336,7 +336,7 @@ class GlmMembersAdmin_registrations_event extends GlmDataRegistrationsRegEvent
                         }
                     }
                 }
-
+                                
                 if (!$haveRegEvent) {
                     $reason = 'Unable to load registration event data or registration event not selected.';
                 }
index d9deace..0e6c8b9 100644 (file)
@@ -10,7 +10,7 @@
 
         <h2 class="glm-admin-table-header">List&nbsp;of&nbsp;Registration&nbsp;Events</h2>
         
-        <div class="glm-row">
+        <div class="glm-row">   
             <b>Text Search: </b><input  class="glmRegEventsSearch" type="text" name="text_search" id="autoTest">
             <input type="submit" value="Submit" style="margin-right: 2em;">
         </div>