Fixed reference to non-existing parameter in view when certain things aren't supplied.
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 13 Feb 2018 20:17:37 +0000 (15:17 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 13 Feb 2018 20:17:37 +0000 (15:17 -0500)
deactivate.php
views/front/customFields/displayForm.html

index df95a60..690b2c2 100644 (file)
@@ -47,12 +47,13 @@ class glmMembersCustomFieldsPluginDeactivate
      */
     public function __construct ($wpdb, $config)
     {
-
+/*
         // Save WordPress Database object
         $this->wpdb = $wpdb;
 
         // Save plugin configuration object
         $this->config = $config;
+*/
 
         // Delete our version from WordPress Options
         delete_option('glmMembersCustomFieldsPluginVersion');
index 3050d54..b9d464d 100644 (file)
@@ -54,7 +54,7 @@
 {if $parentFormId}
     <script type="text/javascript">
         jQuery(function($){
-
+            
             // When the form is submitted
             $('#{$parentFormId}').submit(function(e){
 
@@ -62,7 +62,7 @@
                 if ( false
   {assign var="testSep" value=''}                      
   {foreach $formFields as $field}
-    {if $field.required.value && ( $field.field_type == 'text' || $field.field_type == 'text' ) }
+    {if isset($field.required) && $field.required.value && ( $field.field_type == 'text' || $field.field_type == 'text' ) }
                     || $('#glmCustomFormField_{$field.id}').val() == ''
     {/if}                    
   {/foreach}