Fix for icalfeed import name and email
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 8 Jun 2017 19:12:37 +0000 (15:12 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 8 Jun 2017 19:12:37 +0000 (15:12 -0400)
name and email for contact reversed.

index.php
models/front/events/icalFeedImport.php
readme.txt

index 381c36e..8e41343 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.6.44
+ * Version: 1.6.45
  * 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.6.44
+ * @version 1.6.45
  */
 
 /*
@@ -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.6.44');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.45');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.2');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 82435dd..927f010 100644 (file)
@@ -217,8 +217,8 @@ class GlmMembersFront_events_icalFeedImport
                     'descr'         => $event['DESCRIPTION'],
                     'image'         => $image,
                     'url'           => ( isset( $event['URL'] ) ? $event['URL']: '' ),
-                    'contact_email' => $contact['name'],
-                    'contact_name'  => $contact['email'],
+                    'contact_email' => $contact['email'],
+                    'contact_name'  => $contact['name'],
                     'contact_phone' => $contact['phone'],
                 );
                 if ( $debug ) {
index 466c612..11a369d 100644 (file)
@@ -26,6 +26,10 @@ e.g.
 
 == Changelog ==
 
+= 1.6.45 =
+
+* Fix ical import for email and contact name.
+
 = 1.6.44 =
 
 * Fix for icalFeedImport script to check for events with the start/end date