Update add event form.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 7 Oct 2019 18:44:47 +0000 (14:44 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 7 Oct 2019 18:44:47 +0000 (14:44 -0400)
Add event form need to call updateSlug after the event is created.

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

index 1f48819..b8e3da0 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Associate - Events Add-On
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.8.1
+ * Version: 1.8.2
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersDatabaseEventsAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.8.1
+ * @version 1.8.2
  */
 
 // Check that we're being called by WordPress.
@@ -43,7 +43,7 @@ if (!defined('ABSPATH')) {
  *  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.8.1');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.8.2');
 /**
  * Plugin DB Version
  */
index 4197800..d607bcc 100644 (file)
@@ -530,6 +530,8 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents
                     $eventDataFormat
                 );
                 $eventID = $this->wpdb->insert_id;
+                // Update name slug.
+                $this->updateSlug( $eventID );
 
                 if ( $eventID ) {
                     $locationData = array(
index de760f4..5820331 100755 (executable)
@@ -25,6 +25,9 @@ e.g.
 1. Activate the plugin through the 'Plugins' menu in WordPress
 
 == Changelog ==
+= 1.8.2 =
+* Bugfix for new events from front end.
+
 = 1.8.1 =
 * Add same columns to the admin event dashboard
 * Add Bulk Approval and Decline for event dashboard.