Made the admin contact for edit event not required
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Jun 2016 14:27:23 +0000 (10:27 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Jun 2016 14:27:23 +0000 (10:27 -0400)
We will need to put in the logic to detect if a member is editing the
event and require the fields there.

classes/data/dataEvents.php
index.php

index f21289f..ae2f51d 100644 (file)
@@ -418,7 +418,7 @@ class GlmDataEvents extends GlmDataAbstract
             'admin_name' => array (
                 'field' => 'admin_name',
                 'type' => 'text',
-                'required' => true,
+                'required' => false,
                 'use' => 'a'
             ),
 
@@ -433,7 +433,7 @@ class GlmDataEvents extends GlmDataAbstract
             'admin_email' => array (
                 'field' => 'admin_email',
                 'type' => 'text',
-                'required' => true,
+                'required' => false,
                 'use' => 'a'
             ),
 
@@ -441,7 +441,7 @@ class GlmDataEvents extends GlmDataAbstract
             'admin_phone' => array (
                 'field' => 'admin_phone',
                 'type' => 'text',
-                'required' => true,
+                'required' => false,
                 'use' => 'a'
             ),
 
index 7b80fa1..2912d8e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Events
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.2.1
+ * Version: 1.2.2
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -20,7 +20,7 @@
  * @package glmMembersDatabaseEventsAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.2.1
+ * @version 1.2.2
  */
 
 /*
@@ -38,7 +38,7 @@
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.1');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.2');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.0.18');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.